Fix PEP8 tests for Python 3

* relace long with int
* replace execfile with exec

Change-Id: If98949fa5f49091fbf11c95a65302a4f844538c9
Story: 2003240
Task: 26827
This commit is contained in:
Witold Bedyk 2018-10-01 11:21:23 +02:00
parent fba8cef150
commit 8257dd9f42
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
# under the License.
activate_this_file = "/opt/monasca/transform/venv/bin/activate_this.py"
execfile(activate_this_file, dict(__file__=activate_this_file))
exec(open(activate_this_file).read(), dict(__file__=activate_this_file))
from monasca_transform.driver.mon_metrics_kafka import invoke

View File

@ -15,7 +15,7 @@
import sys
activate_this_file = "/opt/monasca/transform/venv/bin/activate_this.py"
execfile(activate_this_file, dict(__file__=activate_this_file))
exec(open(activate_this_file).read(), dict(__file__=activate_this_file))
from monasca_transform.service.transform_service import main_service

View File

@ -118,7 +118,7 @@ class MonMetricsKafkaProcessor(object):
# partition = saved_offset_spec[composite_key]
from_offsets[
TopicAndPartition(spec_topic, spec_partition)
] = long(spec_until_offset)
] = int(spec_until_offset)
MonMetricsKafkaProcessor.log_debug(
"get_kafka_stream: calling createDirectStream :"