summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-10-05 14:36:56 +0000
committerGerrit Code Review <review@openstack.org>2018-10-05 14:36:56 +0000
commit474d358c1d6465f580a89ea08b2747e8849dad43 (patch)
tree1c2b4576986e15f2f64d23562b34fffea674ecee
parent1cd52aab620336474ff64222a9308318c7405e89 (diff)
parent8257dd9f42711864501b44846563948673620708 (diff)
Merge "Fix PEP8 tests for Python 3"
-rw-r--r--devstack/files/monasca-transform/driver.py2
-rw-r--r--devstack/files/monasca-transform/service_runner.py2
-rw-r--r--monasca_transform/driver/mon_metrics_kafka.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/devstack/files/monasca-transform/driver.py b/devstack/files/monasca-transform/driver.py
index 0c94ca6..57bd8b8 100644
--- a/devstack/files/monasca-transform/driver.py
+++ b/devstack/files/monasca-transform/driver.py
@@ -13,7 +13,7 @@
13# under the License. 13# under the License.
14 14
15activate_this_file = "/opt/monasca/transform/venv/bin/activate_this.py" 15activate_this_file = "/opt/monasca/transform/venv/bin/activate_this.py"
16execfile(activate_this_file, dict(__file__=activate_this_file)) 16exec(open(activate_this_file).read(), dict(__file__=activate_this_file))
17 17
18from monasca_transform.driver.mon_metrics_kafka import invoke 18from monasca_transform.driver.mon_metrics_kafka import invoke
19 19
diff --git a/devstack/files/monasca-transform/service_runner.py b/devstack/files/monasca-transform/service_runner.py
index c19de04..4928b4a 100644
--- a/devstack/files/monasca-transform/service_runner.py
+++ b/devstack/files/monasca-transform/service_runner.py
@@ -15,7 +15,7 @@
15import sys 15import sys
16 16
17activate_this_file = "/opt/monasca/transform/venv/bin/activate_this.py" 17activate_this_file = "/opt/monasca/transform/venv/bin/activate_this.py"
18execfile(activate_this_file, dict(__file__=activate_this_file)) 18exec(open(activate_this_file).read(), dict(__file__=activate_this_file))
19 19
20from monasca_transform.service.transform_service import main_service 20from monasca_transform.service.transform_service import main_service
21 21
diff --git a/monasca_transform/driver/mon_metrics_kafka.py b/monasca_transform/driver/mon_metrics_kafka.py
index e13b194..e8cfa93 100644
--- a/monasca_transform/driver/mon_metrics_kafka.py
+++ b/monasca_transform/driver/mon_metrics_kafka.py
@@ -118,7 +118,7 @@ class MonMetricsKafkaProcessor(object):
118 # partition = saved_offset_spec[composite_key] 118 # partition = saved_offset_spec[composite_key]
119 from_offsets[ 119 from_offsets[
120 TopicAndPartition(spec_topic, spec_partition) 120 TopicAndPartition(spec_topic, spec_partition)
121 ] = long(spec_until_offset) 121 ] = int(spec_until_offset)
122 122
123 MonMetricsKafkaProcessor.log_debug( 123 MonMetricsKafkaProcessor.log_debug(
124 "get_kafka_stream: calling createDirectStream :" 124 "get_kafka_stream: calling createDirectStream :"