Merge "Fix PEP8 tests for Python 3"

This commit is contained in:
Zuul 2018-10-05 14:36:56 +00:00 committed by Gerrit Code Review
commit 474d358c1d
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 :"