diff --git a/.travis.yml b/.travis.yml index b6847eff9e0..af9b6eb68d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ addons: - g++-4.8 - gcc-4.8-multilib - g++-4.8-multilib - - python2.7 + - python3 - wget - pkg-config - zip @@ -46,8 +46,6 @@ script: - gcc --version - which g++-4.8 - g++ --version - - which python - - python -V - - which python2.7 - - python2.7 -V + - which python3 + - python3 -V - scripts/travis/ci.sh diff --git a/README.md b/README.md index 85a7b61734e..1fcc3d906d8 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Heron is realtime analytics platform developed by Twitter. It has a wide array #### Heron Requirements: * Java JDK 1.8 - * Python 2.7 + * Python 3 * Bazel 0.26.0 ## Contact @@ -60,4 +60,4 @@ Heron is realtime analytics platform developed by Twitter. It has a wide array ## License -Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 \ No newline at end of file +Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 diff --git a/bazel_configure.py b/bazel_configure.py index 02e67f14e6b..63d12480913 100755 --- a/bazel_configure.py +++ b/bazel_configure.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -413,7 +413,7 @@ def main(): env_map['AUTOMAKE'] = discover_tool('automake', 'Automake', 'AUTOMAKE', '1.9.6') env_map['AUTOCONF'] = discover_tool('autoconf', 'Autoconf', 'AUTOCONF', '2.6.3') env_map['MAKE'] = discover_tool('make', 'Make', 'MAKE', '3.81') - env_map['PYTHON'] = discover_tool('python', 'Python', 'PYTHON', '2.7') + env_map['PYTHON3'] = discover_tool('python3', 'Python3', 'PYTHON3', '3.4') if platform == 'Darwin': env_map['LIBTOOL'] = discover_tool('glibtool', 'Libtool', 'LIBTOOL', '2.4.2') diff --git a/config/configure.ac b/config/configure.ac index b7ab8905f7f..caba2fa18de 100644 --- a/config/configure.ac +++ b/config/configure.ac @@ -100,8 +100,8 @@ AM_CONDITIONAL([SYSLINUX], [test x$sys_os = xlinux]) ACX_PTHREAD # Check the python version required -AM_PATH_PYTHON([2.4.3]) -AC_PATH_PROG([PYTHON], [python], [],[]) +AM_PATH_PYTHON([3.4]) +AC_PATH_PROG([PYTHON3], [python3], [],[]) abs_top_builddir=`pwd` AC_SUBST(abs_top_builddir) diff --git a/examples/src/python/bolt/consume_bolt.py b/examples/src/python/bolt/consume_bolt.py index 4a8f70beeed..55df3441d59 100644 --- a/examples/src/python/bolt/consume_bolt.py +++ b/examples/src/python/bolt/consume_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/bolt/count_bolt.py b/examples/src/python/bolt/count_bolt.py index 34ac1e8d57d..0a9a33abf40 100644 --- a/examples/src/python/bolt/count_bolt.py +++ b/examples/src/python/bolt/count_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/bolt/half_ack_bolt.py b/examples/src/python/bolt/half_ack_bolt.py index f7346cbff5d..5b6dab4852e 100644 --- a/examples/src/python/bolt/half_ack_bolt.py +++ b/examples/src/python/bolt/half_ack_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/bolt/stateful_count_bolt.py b/examples/src/python/bolt/stateful_count_bolt.py index a3ea6b6ea70..663f4ef087a 100644 --- a/examples/src/python/bolt/stateful_count_bolt.py +++ b/examples/src/python/bolt/stateful_count_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/bolt/stream_aggregate_bolt.py b/examples/src/python/bolt/stream_aggregate_bolt.py index 33b5d64a258..200a8d61397 100644 --- a/examples/src/python/bolt/stream_aggregate_bolt.py +++ b/examples/src/python/bolt/stream_aggregate_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/bolt/window_size_bolt.py b/examples/src/python/bolt/window_size_bolt.py index 083b793f9ce..56040386b4e 100644 --- a/examples/src/python/bolt/window_size_bolt.py +++ b/examples/src/python/bolt/window_size_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/custom_grouping_topology.py b/examples/src/python/custom_grouping_topology.py index ec6e0e2503b..2d0f199712b 100644 --- a/examples/src/python/custom_grouping_topology.py +++ b/examples/src/python/custom_grouping_topology.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/half_acking_topology.py b/examples/src/python/half_acking_topology.py index 7c89aebfd5d..e4fd3cc4d84 100644 --- a/examples/src/python/half_acking_topology.py +++ b/examples/src/python/half_acking_topology.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/join_streamlet_topology.py b/examples/src/python/join_streamlet_topology.py index 866731500bf..82c45dd4ca9 100644 --- a/examples/src/python/join_streamlet_topology.py +++ b/examples/src/python/join_streamlet_topology.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/misc/test_task_hook.py b/examples/src/python/misc/test_task_hook.py index 8ad2eecd226..f3eb767aedf 100644 --- a/examples/src/python/misc/test_task_hook.py +++ b/examples/src/python/misc/test_task_hook.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/multi_stream_topology.py b/examples/src/python/multi_stream_topology.py index 7507e559fe1..24aad643d46 100644 --- a/examples/src/python/multi_stream_topology.py +++ b/examples/src/python/multi_stream_topology.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/pulsar_word_count_streamlet.py b/examples/src/python/pulsar_word_count_streamlet.py index 6d6d7d883c5..3e1a4095444 100644 --- a/examples/src/python/pulsar_word_count_streamlet.py +++ b/examples/src/python/pulsar_word_count_streamlet.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/spout/multi_stream_spout.py b/examples/src/python/spout/multi_stream_spout.py index 8a2cc185bcd..6ac7a694716 100644 --- a/examples/src/python/spout/multi_stream_spout.py +++ b/examples/src/python/spout/multi_stream_spout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/spout/stateful_word_spout.py b/examples/src/python/spout/stateful_word_spout.py index 9f368df30da..6ea7670b36a 100644 --- a/examples/src/python/spout/stateful_word_spout.py +++ b/examples/src/python/spout/stateful_word_spout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/spout/word_spout.py b/examples/src/python/spout/word_spout.py index a194da33630..036ff6ab7dc 100644 --- a/examples/src/python/spout/word_spout.py +++ b/examples/src/python/spout/word_spout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/stateful_word_count_topology.py b/examples/src/python/stateful_word_count_topology.py index 1918dee9db5..7ca1ba74f57 100644 --- a/examples/src/python/stateful_word_count_topology.py +++ b/examples/src/python/stateful_word_count_topology.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/window_size_topology.py b/examples/src/python/window_size_topology.py index d123199bed9..d75efd36bf2 100644 --- a/examples/src/python/window_size_topology.py +++ b/examples/src/python/window_size_topology.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/word_count_streamlet.py b/examples/src/python/word_count_streamlet.py index 112749ff830..4f2ecd6d850 100644 --- a/examples/src/python/word_count_streamlet.py +++ b/examples/src/python/word_count_streamlet.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/examples/src/python/word_count_topology.py b/examples/src/python/word_count_topology.py index 0069b86437d..c5de09e3978 100644 --- a/examples/src/python/word_count_topology.py +++ b/examples/src/python/word_count_topology.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/common/src/python/pex_loader.py b/heron/common/src/python/pex_loader.py index 622e357acb8..9603390f9d4 100644 --- a/heron/common/src/python/pex_loader.py +++ b/heron/common/src/python/pex_loader.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/common/src/python/utils/log.py b/heron/common/src/python/utils/log.py index f3e4b015028..f0de9737dfd 100644 --- a/heron/common/src/python/utils/log.py +++ b/heron/common/src/python/utils/log.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/common/src/python/utils/proc.py b/heron/common/src/python/utils/proc.py index 2adcb29c006..969ab7f0c60 100644 --- a/heron/common/src/python/utils/proc.py +++ b/heron/common/src/python/utils/proc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/common/tests/python/pex_loader/constants.py b/heron/common/tests/python/pex_loader/constants.py index 63bdd27255b..ff99926c7b5 100644 --- a/heron/common/tests/python/pex_loader/constants.py +++ b/heron/common/tests/python/pex_loader/constants.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/common/tests/python/pex_loader/pex_loader_unittest.py b/heron/common/tests/python/pex_loader/pex_loader_unittest.py index 06b4b646822..cf92ee14a90 100644 --- a/heron/common/tests/python/pex_loader/pex_loader_unittest.py +++ b/heron/common/tests/python/pex_loader/pex_loader_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/common/tests/python/pex_loader/testdata/src/sample.py b/heron/common/tests/python/pex_loader/testdata/src/sample.py index 382bd6b24ba..d9136f66c4f 100644 --- a/heron/common/tests/python/pex_loader/testdata/src/sample.py +++ b/heron/common/tests/python/pex_loader/testdata/src/sample.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/executor/src/python/heron_executor.py b/heron/executor/src/python/heron_executor.py index 7fe871c65c6..934d69def52 100755 --- a/heron/executor/src/python/heron_executor.py +++ b/heron/executor/src/python/heron_executor.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/executor/tests/python/heron_executor_unittest.py b/heron/executor/tests/python/heron_executor_unittest.py index a69ee7278ab..1e9303aa5c8 100644 --- a/heron/executor/tests/python/heron_executor_unittest.py +++ b/heron/executor/tests/python/heron_executor_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/basics/base_instance.py b/heron/instance/src/python/basics/base_instance.py index 93ebed465d4..c6e8d34aa6c 100644 --- a/heron/instance/src/python/basics/base_instance.py +++ b/heron/instance/src/python/basics/base_instance.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/basics/bolt_instance.py b/heron/instance/src/python/basics/bolt_instance.py index 972baf04926..0815e7132fd 100644 --- a/heron/instance/src/python/basics/bolt_instance.py +++ b/heron/instance/src/python/basics/bolt_instance.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/basics/spout_instance.py b/heron/instance/src/python/basics/spout_instance.py index 3b4dccf1629..620de48305a 100644 --- a/heron/instance/src/python/basics/spout_instance.py +++ b/heron/instance/src/python/basics/spout_instance.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/instance/st_heron_instance.py b/heron/instance/src/python/instance/st_heron_instance.py index 569e5aa2e82..ce2884a8246 100644 --- a/heron/instance/src/python/instance/st_heron_instance.py +++ b/heron/instance/src/python/instance/st_heron_instance.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/network/event_looper.py b/heron/instance/src/python/network/event_looper.py index a4ffe78f023..105f1362474 100644 --- a/heron/instance/src/python/network/event_looper.py +++ b/heron/instance/src/python/network/event_looper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/network/gateway_looper.py b/heron/instance/src/python/network/gateway_looper.py index 4b136056b64..ee9d22abab0 100644 --- a/heron/instance/src/python/network/gateway_looper.py +++ b/heron/instance/src/python/network/gateway_looper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/network/heron_client.py b/heron/instance/src/python/network/heron_client.py index fa071d392ee..feaa4c986a7 100644 --- a/heron/instance/src/python/network/heron_client.py +++ b/heron/instance/src/python/network/heron_client.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/network/metricsmgr_client.py b/heron/instance/src/python/network/metricsmgr_client.py index 1f63e265ec9..22c38d1e5d3 100644 --- a/heron/instance/src/python/network/metricsmgr_client.py +++ b/heron/instance/src/python/network/metricsmgr_client.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/network/protocol.py b/heron/instance/src/python/network/protocol.py index e15a85f601d..524d1bc0408 100644 --- a/heron/instance/src/python/network/protocol.py +++ b/heron/instance/src/python/network/protocol.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/network/socket_options.py b/heron/instance/src/python/network/socket_options.py index d66c758767f..6e777a94989 100644 --- a/heron/instance/src/python/network/socket_options.py +++ b/heron/instance/src/python/network/socket_options.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/network/st_stmgr_client.py b/heron/instance/src/python/network/st_stmgr_client.py index 2e1bcb0d034..deddfd01813 100644 --- a/heron/instance/src/python/network/st_stmgr_client.py +++ b/heron/instance/src/python/network/st_stmgr_client.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/utils/metrics/metrics_helper.py b/heron/instance/src/python/utils/metrics/metrics_helper.py index 39555bab9d4..e9d49ae8479 100644 --- a/heron/instance/src/python/utils/metrics/metrics_helper.py +++ b/heron/instance/src/python/utils/metrics/metrics_helper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/utils/metrics/py_metrics.py b/heron/instance/src/python/utils/metrics/py_metrics.py index 55636bdb5de..62d27a601b4 100644 --- a/heron/instance/src/python/utils/metrics/py_metrics.py +++ b/heron/instance/src/python/utils/metrics/py_metrics.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/utils/misc/communicator.py b/heron/instance/src/python/utils/misc/communicator.py index f43d4d83b84..bf1b4802861 100644 --- a/heron/instance/src/python/utils/misc/communicator.py +++ b/heron/instance/src/python/utils/misc/communicator.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/utils/misc/custom_grouping_helper.py b/heron/instance/src/python/utils/misc/custom_grouping_helper.py index 18819d4dc6e..335c3c37ba3 100644 --- a/heron/instance/src/python/utils/misc/custom_grouping_helper.py +++ b/heron/instance/src/python/utils/misc/custom_grouping_helper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/utils/misc/outgoing_tuple_helper.py b/heron/instance/src/python/utils/misc/outgoing_tuple_helper.py index 71a7f812e9d..77bfc379d5e 100644 --- a/heron/instance/src/python/utils/misc/outgoing_tuple_helper.py +++ b/heron/instance/src/python/utils/misc/outgoing_tuple_helper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/utils/misc/pplan_helper.py b/heron/instance/src/python/utils/misc/pplan_helper.py index e14c40957b2..b1e5ae39ba7 100644 --- a/heron/instance/src/python/utils/misc/pplan_helper.py +++ b/heron/instance/src/python/utils/misc/pplan_helper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/utils/misc/serializer_helper.py b/heron/instance/src/python/utils/misc/serializer_helper.py index b8947885127..c1ddaac35fd 100644 --- a/heron/instance/src/python/utils/misc/serializer_helper.py +++ b/heron/instance/src/python/utils/misc/serializer_helper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/utils/system_config.py b/heron/instance/src/python/utils/system_config.py index 63275781fcf..6801fc98a6f 100644 --- a/heron/instance/src/python/utils/system_config.py +++ b/heron/instance/src/python/utils/system_config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/utils/system_constants.py b/heron/instance/src/python/utils/system_constants.py index aa080b66410..fd75423b8bd 100644 --- a/heron/instance/src/python/utils/system_constants.py +++ b/heron/instance/src/python/utils/system_constants.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/utils/topology/topology_context_impl.py b/heron/instance/src/python/utils/topology/topology_context_impl.py index 95687a0c016..0e3541f102b 100644 --- a/heron/instance/src/python/utils/topology/topology_context_impl.py +++ b/heron/instance/src/python/utils/topology/topology_context_impl.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/src/python/utils/tuple.py b/heron/instance/src/python/utils/tuple.py index 789141cc67b..7b81c010411 100644 --- a/heron/instance/src/python/utils/tuple.py +++ b/heron/instance/src/python/utils/tuple.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/mock_protobuf.py b/heron/instance/tests/python/mock_protobuf.py index 13ed8e323e6..fb5a147d664 100644 --- a/heron/instance/tests/python/mock_protobuf.py +++ b/heron/instance/tests/python/mock_protobuf.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/network/event_looper_unittest.py b/heron/instance/tests/python/network/event_looper_unittest.py index 69f4249d74b..0fe3411eedc 100644 --- a/heron/instance/tests/python/network/event_looper_unittest.py +++ b/heron/instance/tests/python/network/event_looper_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/network/gateway_looper_unittest.py b/heron/instance/tests/python/network/gateway_looper_unittest.py index 8f8b3489c77..de8ecc72331 100644 --- a/heron/instance/tests/python/network/gateway_looper_unittest.py +++ b/heron/instance/tests/python/network/gateway_looper_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/network/heron_client_unittest.py b/heron/instance/tests/python/network/heron_client_unittest.py index ead3a366976..68e4711a836 100644 --- a/heron/instance/tests/python/network/heron_client_unittest.py +++ b/heron/instance/tests/python/network/heron_client_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/network/metricsmgr_client_unittest.py b/heron/instance/tests/python/network/metricsmgr_client_unittest.py index 605d8365b6f..39cbe39f640 100644 --- a/heron/instance/tests/python/network/metricsmgr_client_unittest.py +++ b/heron/instance/tests/python/network/metricsmgr_client_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/network/mock_generator.py b/heron/instance/tests/python/network/mock_generator.py index 708471b480b..e5893285f9e 100644 --- a/heron/instance/tests/python/network/mock_generator.py +++ b/heron/instance/tests/python/network/mock_generator.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/network/mock_generator_client.py b/heron/instance/tests/python/network/mock_generator_client.py index 7e61cb01e93..0f88d6db5aa 100644 --- a/heron/instance/tests/python/network/mock_generator_client.py +++ b/heron/instance/tests/python/network/mock_generator_client.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/network/protocol_unittest.py b/heron/instance/tests/python/network/protocol_unittest.py index e76b0c3aeab..f408795ba1e 100644 --- a/heron/instance/tests/python/network/protocol_unittest.py +++ b/heron/instance/tests/python/network/protocol_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/network/st_stmgr_client_unittest.py b/heron/instance/tests/python/network/st_stmgr_client_unittest.py index 1bc63b7a6e8..9bc9855d37d 100644 --- a/heron/instance/tests/python/network/st_stmgr_client_unittest.py +++ b/heron/instance/tests/python/network/st_stmgr_client_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/utils/communicator_unittest.py b/heron/instance/tests/python/utils/communicator_unittest.py index 31f3a486034..caf1c217361 100644 --- a/heron/instance/tests/python/utils/communicator_unittest.py +++ b/heron/instance/tests/python/utils/communicator_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/utils/custom_grouping_unittest.py b/heron/instance/tests/python/utils/custom_grouping_unittest.py index 8ba69d18327..00cc8abddc4 100644 --- a/heron/instance/tests/python/utils/custom_grouping_unittest.py +++ b/heron/instance/tests/python/utils/custom_grouping_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/utils/global_metrics_unittest.py b/heron/instance/tests/python/utils/global_metrics_unittest.py index 2216d76ae28..90df97424a2 100644 --- a/heron/instance/tests/python/utils/global_metrics_unittest.py +++ b/heron/instance/tests/python/utils/global_metrics_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/utils/log_unittest.py b/heron/instance/tests/python/utils/log_unittest.py index daf6ccf9421..2fde7dd7033 100644 --- a/heron/instance/tests/python/utils/log_unittest.py +++ b/heron/instance/tests/python/utils/log_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/utils/metrics_helper_unittest.py b/heron/instance/tests/python/utils/metrics_helper_unittest.py index ad220241746..6e23eb2a485 100644 --- a/heron/instance/tests/python/utils/metrics_helper_unittest.py +++ b/heron/instance/tests/python/utils/metrics_helper_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/utils/mock_generator.py b/heron/instance/tests/python/utils/mock_generator.py index 88090960ea4..37e82747f44 100644 --- a/heron/instance/tests/python/utils/mock_generator.py +++ b/heron/instance/tests/python/utils/mock_generator.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/utils/outgoing_tuple_helper_unittest.py b/heron/instance/tests/python/utils/outgoing_tuple_helper_unittest.py index 62ff330dc42..c81bedcfd16 100644 --- a/heron/instance/tests/python/utils/outgoing_tuple_helper_unittest.py +++ b/heron/instance/tests/python/utils/outgoing_tuple_helper_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/utils/pplan_helper_unittest.py b/heron/instance/tests/python/utils/pplan_helper_unittest.py index 7de571f7d15..427f28ca54b 100644 --- a/heron/instance/tests/python/utils/pplan_helper_unittest.py +++ b/heron/instance/tests/python/utils/pplan_helper_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/utils/py_metrics_unittest.py b/heron/instance/tests/python/utils/py_metrics_unittest.py index 33ab25cfa07..11bc4ae170e 100644 --- a/heron/instance/tests/python/utils/py_metrics_unittest.py +++ b/heron/instance/tests/python/utils/py_metrics_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/utils/topology_context_impl_unittest.py b/heron/instance/tests/python/utils/topology_context_impl_unittest.py index ed02412ec55..409dbb424d8 100644 --- a/heron/instance/tests/python/utils/topology_context_impl_unittest.py +++ b/heron/instance/tests/python/utils/topology_context_impl_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/instance/tests/python/utils/tuple_helper_unittest.py b/heron/instance/tests/python/utils/tuple_helper_unittest.py index a169907d3de..04c2864ed96 100644 --- a/heron/instance/tests/python/utils/tuple_helper_unittest.py +++ b/heron/instance/tests/python/utils/tuple_helper_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/handlers/browsehandler.py b/heron/shell/src/python/handlers/browsehandler.py index c5a35abfbe2..760764cb548 100644 --- a/heron/shell/src/python/handlers/browsehandler.py +++ b/heron/shell/src/python/handlers/browsehandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/handlers/downloadhandler.py b/heron/shell/src/python/handlers/downloadhandler.py index 9629e3fe643..20e6adfa517 100644 --- a/heron/shell/src/python/handlers/downloadhandler.py +++ b/heron/shell/src/python/handlers/downloadhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/handlers/filedatahandler.py b/heron/shell/src/python/handlers/filedatahandler.py index 75185600e88..c0baa7b7fa5 100644 --- a/heron/shell/src/python/handlers/filedatahandler.py +++ b/heron/shell/src/python/handlers/filedatahandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/handlers/filehandler.py b/heron/shell/src/python/handlers/filehandler.py index 55fbf2c5e99..ab26247a780 100644 --- a/heron/shell/src/python/handlers/filehandler.py +++ b/heron/shell/src/python/handlers/filehandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/handlers/filestatshandler.py b/heron/shell/src/python/handlers/filestatshandler.py index a3774cab39e..0c32af91d9f 100644 --- a/heron/shell/src/python/handlers/filestatshandler.py +++ b/heron/shell/src/python/handlers/filestatshandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/handlers/healthhandler.py b/heron/shell/src/python/handlers/healthhandler.py index 2455ad5a86f..19c8585e85c 100644 --- a/heron/shell/src/python/handlers/healthhandler.py +++ b/heron/shell/src/python/handlers/healthhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/handlers/jmaphandler.py b/heron/shell/src/python/handlers/jmaphandler.py index d147e5c23f4..0352addd3b1 100644 --- a/heron/shell/src/python/handlers/jmaphandler.py +++ b/heron/shell/src/python/handlers/jmaphandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/handlers/jstackhandler.py b/heron/shell/src/python/handlers/jstackhandler.py index 3e5181c707b..dd1c6ab68be 100644 --- a/heron/shell/src/python/handlers/jstackhandler.py +++ b/heron/shell/src/python/handlers/jstackhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/handlers/killexecutorhandler.py b/heron/shell/src/python/handlers/killexecutorhandler.py index fb2e56dda8d..b402319b688 100644 --- a/heron/shell/src/python/handlers/killexecutorhandler.py +++ b/heron/shell/src/python/handlers/killexecutorhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/handlers/memoryhistogramhandler.py b/heron/shell/src/python/handlers/memoryhistogramhandler.py index 7b355cfed3c..5ea48c761cc 100644 --- a/heron/shell/src/python/handlers/memoryhistogramhandler.py +++ b/heron/shell/src/python/handlers/memoryhistogramhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/handlers/pidhandler.py b/heron/shell/src/python/handlers/pidhandler.py index da1c5c3e169..b63e5aed444 100644 --- a/heron/shell/src/python/handlers/pidhandler.py +++ b/heron/shell/src/python/handlers/pidhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/handlers/pmaphandler.py b/heron/shell/src/python/handlers/pmaphandler.py index acef828824c..fb507ce6fb6 100644 --- a/heron/shell/src/python/handlers/pmaphandler.py +++ b/heron/shell/src/python/handlers/pmaphandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/main.py b/heron/shell/src/python/main.py index 0f375c8888f..c476eca56e7 100644 --- a/heron/shell/src/python/main.py +++ b/heron/shell/src/python/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/shell/src/python/utils.py b/heron/shell/src/python/utils.py index ffbe2ce19b6..bf9c1bdd5f2 100644 --- a/heron/shell/src/python/utils.py +++ b/heron/shell/src/python/utils.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/statemgrs/src/python/config.py b/heron/statemgrs/src/python/config.py index 14975b3d638..d32c2a1597d 100644 --- a/heron/statemgrs/src/python/config.py +++ b/heron/statemgrs/src/python/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/statemgrs/src/python/configloader.py b/heron/statemgrs/src/python/configloader.py index 384a5c71cc6..9fe98f2c5d0 100644 --- a/heron/statemgrs/src/python/configloader.py +++ b/heron/statemgrs/src/python/configloader.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/statemgrs/src/python/filestatemanager.py b/heron/statemgrs/src/python/filestatemanager.py index ca56e5634df..fca9cc4666a 100644 --- a/heron/statemgrs/src/python/filestatemanager.py +++ b/heron/statemgrs/src/python/filestatemanager.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/statemgrs/src/python/log.py b/heron/statemgrs/src/python/log.py index cf23b294e81..3c3f8009ae3 100644 --- a/heron/statemgrs/src/python/log.py +++ b/heron/statemgrs/src/python/log.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/statemgrs/src/python/stateexceptions.py b/heron/statemgrs/src/python/stateexceptions.py index 69380d98b36..639da76135b 100644 --- a/heron/statemgrs/src/python/stateexceptions.py +++ b/heron/statemgrs/src/python/stateexceptions.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/statemgrs/src/python/statemanager.py b/heron/statemgrs/src/python/statemanager.py index a4affff5285..ad591fa8797 100644 --- a/heron/statemgrs/src/python/statemanager.py +++ b/heron/statemgrs/src/python/statemanager.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/statemgrs/src/python/statemanagerfactory.py b/heron/statemgrs/src/python/statemanagerfactory.py index 86b51f7271f..a0d03b5f793 100644 --- a/heron/statemgrs/src/python/statemanagerfactory.py +++ b/heron/statemgrs/src/python/statemanagerfactory.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/statemgrs/src/python/zkstatemanager.py b/heron/statemgrs/src/python/zkstatemanager.py index 438a0199a7a..31cd056eb50 100644 --- a/heron/statemgrs/src/python/zkstatemanager.py +++ b/heron/statemgrs/src/python/zkstatemanager.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/statemgrs/tests/python/configloader_unittest.py b/heron/statemgrs/tests/python/configloader_unittest.py index 3549e6632bf..7018cada012 100644 --- a/heron/statemgrs/tests/python/configloader_unittest.py +++ b/heron/statemgrs/tests/python/configloader_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/statemgrs/tests/python/statemanagerfactory_unittest.py b/heron/statemgrs/tests/python/statemanagerfactory_unittest.py index dea8cfea56b..0dcfcda19df 100644 --- a/heron/statemgrs/tests/python/statemanagerfactory_unittest.py +++ b/heron/statemgrs/tests/python/statemanagerfactory_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/statemgrs/tests/python/zkstatemanager_unittest.py b/heron/statemgrs/tests/python/zkstatemanager_unittest.py index 8decf633eb2..ee6da0e3448 100644 --- a/heron/statemgrs/tests/python/zkstatemanager_unittest.py +++ b/heron/statemgrs/tests/python/zkstatemanager_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/admin/src/python/main.py b/heron/tools/admin/src/python/main.py index 4b276017317..7e901c4304a 100644 --- a/heron/tools/admin/src/python/main.py +++ b/heron/tools/admin/src/python/main.py @@ -16,7 +16,7 @@ # under the License. -# !/usr/bin/env python2.7 +# !/usr/bin/env python3 ''' main.py ''' import argparse import os diff --git a/heron/tools/cli/src/python/activate.py b/heron/tools/cli/src/python/activate.py index daabcb5fdf5..35674847028 100644 --- a/heron/tools/cli/src/python/activate.py +++ b/heron/tools/cli/src/python/activate.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/args.py b/heron/tools/cli/src/python/args.py index 3d280ce3e92..60879d98075 100644 --- a/heron/tools/cli/src/python/args.py +++ b/heron/tools/cli/src/python/args.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/cdefs.py b/heron/tools/cli/src/python/cdefs.py index a8ca744e843..d89cb25ef3d 100644 --- a/heron/tools/cli/src/python/cdefs.py +++ b/heron/tools/cli/src/python/cdefs.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/cli_helper.py b/heron/tools/cli/src/python/cli_helper.py index 4b73661c645..51195fa53d6 100644 --- a/heron/tools/cli/src/python/cli_helper.py +++ b/heron/tools/cli/src/python/cli_helper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/config.py b/heron/tools/cli/src/python/config.py index a48a4f09e97..870ef037d9f 100644 --- a/heron/tools/cli/src/python/config.py +++ b/heron/tools/cli/src/python/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/deactivate.py b/heron/tools/cli/src/python/deactivate.py index 9534de8164e..7cef5aba4e9 100644 --- a/heron/tools/cli/src/python/deactivate.py +++ b/heron/tools/cli/src/python/deactivate.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/execute.py b/heron/tools/cli/src/python/execute.py index ba2d982b4d8..df526411a9d 100644 --- a/heron/tools/cli/src/python/execute.py +++ b/heron/tools/cli/src/python/execute.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/help.py b/heron/tools/cli/src/python/help.py index 6edd8a0aefd..a535de83ec7 100644 --- a/heron/tools/cli/src/python/help.py +++ b/heron/tools/cli/src/python/help.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/jars.py b/heron/tools/cli/src/python/jars.py index 611de05c7c2..32152944c2e 100644 --- a/heron/tools/cli/src/python/jars.py +++ b/heron/tools/cli/src/python/jars.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/kill.py b/heron/tools/cli/src/python/kill.py index d2902695a0c..2b85fcde50b 100644 --- a/heron/tools/cli/src/python/kill.py +++ b/heron/tools/cli/src/python/kill.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/main.py b/heron/tools/cli/src/python/main.py index a8257c0990c..b343f167bbb 100644 --- a/heron/tools/cli/src/python/main.py +++ b/heron/tools/cli/src/python/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/opts.py b/heron/tools/cli/src/python/opts.py index be29bf22fd7..160be97796e 100644 --- a/heron/tools/cli/src/python/opts.py +++ b/heron/tools/cli/src/python/opts.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/rest.py b/heron/tools/cli/src/python/rest.py index cc95a4f0dda..ec6b55403d8 100644 --- a/heron/tools/cli/src/python/rest.py +++ b/heron/tools/cli/src/python/rest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/restart.py b/heron/tools/cli/src/python/restart.py index 9b731fa0cc0..ab8802ef007 100644 --- a/heron/tools/cli/src/python/restart.py +++ b/heron/tools/cli/src/python/restart.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/result.py b/heron/tools/cli/src/python/result.py index e8b556dbdc1..c8e47ff02c9 100644 --- a/heron/tools/cli/src/python/result.py +++ b/heron/tools/cli/src/python/result.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/submit.py b/heron/tools/cli/src/python/submit.py index 57df7fb5874..5017486e763 100644 --- a/heron/tools/cli/src/python/submit.py +++ b/heron/tools/cli/src/python/submit.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/update.py b/heron/tools/cli/src/python/update.py index e499fb68643..6ac89ac8758 100644 --- a/heron/tools/cli/src/python/update.py +++ b/heron/tools/cli/src/python/update.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/src/python/version.py b/heron/tools/cli/src/python/version.py index 260f2ae402c..00c0957ce44 100644 --- a/heron/tools/cli/src/python/version.py +++ b/heron/tools/cli/src/python/version.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/tests/python/client_command_unittest.py b/heron/tools/cli/tests/python/client_command_unittest.py index 00f35a41f3b..891f31a69d3 100644 --- a/heron/tools/cli/tests/python/client_command_unittest.py +++ b/heron/tools/cli/tests/python/client_command_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/cli/tests/python/opts_unittest.py b/heron/tools/cli/tests/python/opts_unittest.py index 2f31ff63628..49e128b2e0c 100644 --- a/heron/tools/cli/tests/python/opts_unittest.py +++ b/heron/tools/cli/tests/python/opts_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/common/src/python/access/fetch.py b/heron/tools/common/src/python/access/fetch.py index 19adf2be391..bc8b8a3da39 100644 --- a/heron/tools/common/src/python/access/fetch.py +++ b/heron/tools/common/src/python/access/fetch.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/common/src/python/access/heron_api.py b/heron/tools/common/src/python/access/heron_api.py index c5a52038616..6e77e51126c 100644 --- a/heron/tools/common/src/python/access/heron_api.py +++ b/heron/tools/common/src/python/access/heron_api.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/common/src/python/access/query.py b/heron/tools/common/src/python/access/query.py index d126a7b35b6..3f4286420b2 100644 --- a/heron/tools/common/src/python/access/query.py +++ b/heron/tools/common/src/python/access/query.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/common/src/python/access/tracker_access.py b/heron/tools/common/src/python/access/tracker_access.py index 8b49b97e16b..c0700f50ac0 100644 --- a/heron/tools/common/src/python/access/tracker_access.py +++ b/heron/tools/common/src/python/access/tracker_access.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/common/src/python/utils/classpath.py b/heron/tools/common/src/python/utils/classpath.py index a0293afeb59..2fc734d2916 100644 --- a/heron/tools/common/src/python/utils/classpath.py +++ b/heron/tools/common/src/python/utils/classpath.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/common/src/python/utils/config.py b/heron/tools/common/src/python/utils/config.py index 42d395f4105..ad8d69a42ef 100644 --- a/heron/tools/common/src/python/utils/config.py +++ b/heron/tools/common/src/python/utils/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/common/src/python/utils/heronparser.py b/heron/tools/common/src/python/utils/heronparser.py index 7a7acae6188..29cb7a8018a 100755 --- a/heron/tools/common/src/python/utils/heronparser.py +++ b/heron/tools/common/src/python/utils/heronparser.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/explorer/src/python/args.py b/heron/tools/explorer/src/python/args.py index 2d5aca4285e..c312c35f48f 100644 --- a/heron/tools/explorer/src/python/args.py +++ b/heron/tools/explorer/src/python/args.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/explorer/src/python/clusters.py b/heron/tools/explorer/src/python/clusters.py index 4efb25ab316..bdd208f4ef0 100644 --- a/heron/tools/explorer/src/python/clusters.py +++ b/heron/tools/explorer/src/python/clusters.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/explorer/src/python/help.py b/heron/tools/explorer/src/python/help.py index 37edee9ea74..6eaf116415a 100644 --- a/heron/tools/explorer/src/python/help.py +++ b/heron/tools/explorer/src/python/help.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/explorer/src/python/logicalplan.py b/heron/tools/explorer/src/python/logicalplan.py index f6eb2453934..3b6fa48d97a 100644 --- a/heron/tools/explorer/src/python/logicalplan.py +++ b/heron/tools/explorer/src/python/logicalplan.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/explorer/src/python/main.py b/heron/tools/explorer/src/python/main.py index 4147e044387..49006fde069 100644 --- a/heron/tools/explorer/src/python/main.py +++ b/heron/tools/explorer/src/python/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/explorer/src/python/opts.py b/heron/tools/explorer/src/python/opts.py index 8b3e0698e04..47c91f0f682 100644 --- a/heron/tools/explorer/src/python/opts.py +++ b/heron/tools/explorer/src/python/opts.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/explorer/src/python/physicalplan.py b/heron/tools/explorer/src/python/physicalplan.py index 50ad7c3ee31..a577ee2f319 100644 --- a/heron/tools/explorer/src/python/physicalplan.py +++ b/heron/tools/explorer/src/python/physicalplan.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/explorer/src/python/topologies.py b/heron/tools/explorer/src/python/topologies.py index dab24a790ab..137f29086d9 100644 --- a/heron/tools/explorer/src/python/topologies.py +++ b/heron/tools/explorer/src/python/topologies.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/explorer/src/python/version.py b/heron/tools/explorer/src/python/version.py index 00f7e512f20..84773f59ab7 100644 --- a/heron/tools/explorer/src/python/version.py +++ b/heron/tools/explorer/src/python/version.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/explorer/tests/python/explorer_unittest.py b/heron/tools/explorer/tests/python/explorer_unittest.py index 40703374374..ab942fa6838 100644 --- a/heron/tools/explorer/tests/python/explorer_unittest.py +++ b/heron/tools/explorer/tests/python/explorer_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/config.py b/heron/tools/tracker/src/python/config.py index 089b03e91f6..f19182bf975 100644 --- a/heron/tools/tracker/src/python/config.py +++ b/heron/tools/tracker/src/python/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/constants.py b/heron/tools/tracker/src/python/constants.py index 695a60834cc..2ae59bad5fa 100644 --- a/heron/tools/tracker/src/python/constants.py +++ b/heron/tools/tracker/src/python/constants.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/graph.py b/heron/tools/tracker/src/python/graph.py index 747fd5d69f8..be94778ecca 100644 --- a/heron/tools/tracker/src/python/graph.py +++ b/heron/tools/tracker/src/python/graph.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/basehandler.py b/heron/tools/tracker/src/python/handlers/basehandler.py index 300fbf37ef1..49c2892dded 100644 --- a/heron/tools/tracker/src/python/handlers/basehandler.py +++ b/heron/tools/tracker/src/python/handlers/basehandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/clustershandler.py b/heron/tools/tracker/src/python/handlers/clustershandler.py index d8aeede5b07..73af25539d1 100644 --- a/heron/tools/tracker/src/python/handlers/clustershandler.py +++ b/heron/tools/tracker/src/python/handlers/clustershandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/containerfilehandler.py b/heron/tools/tracker/src/python/handlers/containerfilehandler.py index 234ae2096ce..3132567640d 100644 --- a/heron/tools/tracker/src/python/handlers/containerfilehandler.py +++ b/heron/tools/tracker/src/python/handlers/containerfilehandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/defaulthandler.py b/heron/tools/tracker/src/python/handlers/defaulthandler.py index ff8093ee144..a30443be48f 100644 --- a/heron/tools/tracker/src/python/handlers/defaulthandler.py +++ b/heron/tools/tracker/src/python/handlers/defaulthandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/exceptionhandler.py b/heron/tools/tracker/src/python/handlers/exceptionhandler.py index 2e67e7980ee..c43f28555df 100644 --- a/heron/tools/tracker/src/python/handlers/exceptionhandler.py +++ b/heron/tools/tracker/src/python/handlers/exceptionhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/exceptionsummaryhandler.py b/heron/tools/tracker/src/python/handlers/exceptionsummaryhandler.py index b943e5f7c9b..b613807a397 100644 --- a/heron/tools/tracker/src/python/handlers/exceptionsummaryhandler.py +++ b/heron/tools/tracker/src/python/handlers/exceptionsummaryhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/executionstatehandler.py b/heron/tools/tracker/src/python/handlers/executionstatehandler.py index 4d1793ba0bd..b97c217809f 100644 --- a/heron/tools/tracker/src/python/handlers/executionstatehandler.py +++ b/heron/tools/tracker/src/python/handlers/executionstatehandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/jmaphandler.py b/heron/tools/tracker/src/python/handlers/jmaphandler.py index 2e102cd4a03..6d41c4ca00b 100644 --- a/heron/tools/tracker/src/python/handlers/jmaphandler.py +++ b/heron/tools/tracker/src/python/handlers/jmaphandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/jstackhandler.py b/heron/tools/tracker/src/python/handlers/jstackhandler.py index 48c583f4603..d5f4a64843e 100644 --- a/heron/tools/tracker/src/python/handlers/jstackhandler.py +++ b/heron/tools/tracker/src/python/handlers/jstackhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/logicalplanhandler.py b/heron/tools/tracker/src/python/handlers/logicalplanhandler.py index 2da1cd22bbd..25c2acf8b01 100644 --- a/heron/tools/tracker/src/python/handlers/logicalplanhandler.py +++ b/heron/tools/tracker/src/python/handlers/logicalplanhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/machineshandler.py b/heron/tools/tracker/src/python/handlers/machineshandler.py index bef23d97e9b..6dfa8385162 100644 --- a/heron/tools/tracker/src/python/handlers/machineshandler.py +++ b/heron/tools/tracker/src/python/handlers/machineshandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/mainhandler.py b/heron/tools/tracker/src/python/handlers/mainhandler.py index 90e93472ce6..1b09e08c3f3 100644 --- a/heron/tools/tracker/src/python/handlers/mainhandler.py +++ b/heron/tools/tracker/src/python/handlers/mainhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/memoryhistogramhandler.py b/heron/tools/tracker/src/python/handlers/memoryhistogramhandler.py index 10c32b9e488..3ac3293cd70 100644 --- a/heron/tools/tracker/src/python/handlers/memoryhistogramhandler.py +++ b/heron/tools/tracker/src/python/handlers/memoryhistogramhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/metadatahandler.py b/heron/tools/tracker/src/python/handlers/metadatahandler.py index 4605c636045..820b51c6a0a 100644 --- a/heron/tools/tracker/src/python/handlers/metadatahandler.py +++ b/heron/tools/tracker/src/python/handlers/metadatahandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/metricshandler.py b/heron/tools/tracker/src/python/handlers/metricshandler.py index 50471165f10..5f79f6206a6 100644 --- a/heron/tools/tracker/src/python/handlers/metricshandler.py +++ b/heron/tools/tracker/src/python/handlers/metricshandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/metricsqueryhandler.py b/heron/tools/tracker/src/python/handlers/metricsqueryhandler.py index 2ea91835441..a0e367a063c 100644 --- a/heron/tools/tracker/src/python/handlers/metricsqueryhandler.py +++ b/heron/tools/tracker/src/python/handlers/metricsqueryhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/metricstimelinehandler.py b/heron/tools/tracker/src/python/handlers/metricstimelinehandler.py index fb4138555bf..267734e48da 100644 --- a/heron/tools/tracker/src/python/handlers/metricstimelinehandler.py +++ b/heron/tools/tracker/src/python/handlers/metricstimelinehandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/packingplanhandler.py b/heron/tools/tracker/src/python/handlers/packingplanhandler.py index ced6eb18638..387b4889bdf 100644 --- a/heron/tools/tracker/src/python/handlers/packingplanhandler.py +++ b/heron/tools/tracker/src/python/handlers/packingplanhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/physicalplanhandler.py b/heron/tools/tracker/src/python/handlers/physicalplanhandler.py index ff98e5fd61e..2fd6223c121 100644 --- a/heron/tools/tracker/src/python/handlers/physicalplanhandler.py +++ b/heron/tools/tracker/src/python/handlers/physicalplanhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/pidhandler.py b/heron/tools/tracker/src/python/handlers/pidhandler.py index 39d3e9b4400..0eb549110e4 100644 --- a/heron/tools/tracker/src/python/handlers/pidhandler.py +++ b/heron/tools/tracker/src/python/handlers/pidhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/runtimestatehandler.py b/heron/tools/tracker/src/python/handlers/runtimestatehandler.py index b776517e500..44e2fc1b055 100644 --- a/heron/tools/tracker/src/python/handlers/runtimestatehandler.py +++ b/heron/tools/tracker/src/python/handlers/runtimestatehandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/schedulerlocationhandler.py b/heron/tools/tracker/src/python/handlers/schedulerlocationhandler.py index 502e9227c4b..670e1a644aa 100644 --- a/heron/tools/tracker/src/python/handlers/schedulerlocationhandler.py +++ b/heron/tools/tracker/src/python/handlers/schedulerlocationhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/stateshandler.py b/heron/tools/tracker/src/python/handlers/stateshandler.py index c2f398fdf11..2cf80cbff4d 100644 --- a/heron/tools/tracker/src/python/handlers/stateshandler.py +++ b/heron/tools/tracker/src/python/handlers/stateshandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/topologieshandler.py b/heron/tools/tracker/src/python/handlers/topologieshandler.py index 1beb56736ff..cbb9e1b38c3 100644 --- a/heron/tools/tracker/src/python/handlers/topologieshandler.py +++ b/heron/tools/tracker/src/python/handlers/topologieshandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/topologyconfighandler.py b/heron/tools/tracker/src/python/handlers/topologyconfighandler.py index c16a969e104..14cbf42912e 100644 --- a/heron/tools/tracker/src/python/handlers/topologyconfighandler.py +++ b/heron/tools/tracker/src/python/handlers/topologyconfighandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/handlers/topologyhandler.py b/heron/tools/tracker/src/python/handlers/topologyhandler.py index 242cfc1cdf0..0a1b4173209 100644 --- a/heron/tools/tracker/src/python/handlers/topologyhandler.py +++ b/heron/tools/tracker/src/python/handlers/topologyhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/javaobj.py b/heron/tools/tracker/src/python/javaobj.py index d5978baf476..ed962a01b7e 100644 --- a/heron/tools/tracker/src/python/javaobj.py +++ b/heron/tools/tracker/src/python/javaobj.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/main.py b/heron/tools/tracker/src/python/main.py index 581894dbe25..689d0328e15 100644 --- a/heron/tools/tracker/src/python/main.py +++ b/heron/tools/tracker/src/python/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/metricstimeline.py b/heron/tools/tracker/src/python/metricstimeline.py index 5cc0cf11ae0..29fcc2a3cba 100644 --- a/heron/tools/tracker/src/python/metricstimeline.py +++ b/heron/tools/tracker/src/python/metricstimeline.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/pyutils.py b/heron/tools/tracker/src/python/pyutils.py index 8bdff1ade20..71af4a90c3e 100644 --- a/heron/tools/tracker/src/python/pyutils.py +++ b/heron/tools/tracker/src/python/pyutils.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/query.py b/heron/tools/tracker/src/python/query.py index 67599a626a5..ceaa23ad5b1 100644 --- a/heron/tools/tracker/src/python/query.py +++ b/heron/tools/tracker/src/python/query.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/query_operators.py b/heron/tools/tracker/src/python/query_operators.py index dd348a7e041..216f1f5a1fa 100644 --- a/heron/tools/tracker/src/python/query_operators.py +++ b/heron/tools/tracker/src/python/query_operators.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/topology.py b/heron/tools/tracker/src/python/topology.py index 2deef9eb6c9..ba7a1979bbe 100644 --- a/heron/tools/tracker/src/python/topology.py +++ b/heron/tools/tracker/src/python/topology.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/tracker.py b/heron/tools/tracker/src/python/tracker.py index e2d16fc637d..5cdbea40818 100644 --- a/heron/tools/tracker/src/python/tracker.py +++ b/heron/tools/tracker/src/python/tracker.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/tracker/src/python/utils.py b/heron/tools/tracker/src/python/utils.py index 6e7bed0f9fc..1b61232b671 100644 --- a/heron/tools/tracker/src/python/utils.py +++ b/heron/tools/tracker/src/python/utils.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/ui/src/python/args.py b/heron/tools/ui/src/python/args.py index 14f996d1577..b5c040492f8 100644 --- a/heron/tools/ui/src/python/args.py +++ b/heron/tools/ui/src/python/args.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/ui/src/python/consts.py b/heron/tools/ui/src/python/consts.py index 7c643a7c986..63e7adff9c7 100644 --- a/heron/tools/ui/src/python/consts.py +++ b/heron/tools/ui/src/python/consts.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/ui/src/python/handlers/api/metrics.py b/heron/tools/ui/src/python/handlers/api/metrics.py index 770d2708f50..d70b1fd1b74 100644 --- a/heron/tools/ui/src/python/handlers/api/metrics.py +++ b/heron/tools/ui/src/python/handlers/api/metrics.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/ui/src/python/handlers/api/topology.py b/heron/tools/ui/src/python/handlers/api/topology.py index f7c910076d5..6dd20dbcf53 100644 --- a/heron/tools/ui/src/python/handlers/api/topology.py +++ b/heron/tools/ui/src/python/handlers/api/topology.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/ui/src/python/handlers/base.py b/heron/tools/ui/src/python/handlers/base.py index 1d0ee7d8595..059f3f6cc4b 100644 --- a/heron/tools/ui/src/python/handlers/base.py +++ b/heron/tools/ui/src/python/handlers/base.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/ui/src/python/handlers/common/consts.py b/heron/tools/ui/src/python/handlers/common/consts.py index b9a34218409..d03315359d6 100644 --- a/heron/tools/ui/src/python/handlers/common/consts.py +++ b/heron/tools/ui/src/python/handlers/common/consts.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/ui/src/python/handlers/common/utils.py b/heron/tools/ui/src/python/handlers/common/utils.py index 5b49236137b..ccb7b8553a0 100644 --- a/heron/tools/ui/src/python/handlers/common/utils.py +++ b/heron/tools/ui/src/python/handlers/common/utils.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/ui/src/python/handlers/mainhandler.py b/heron/tools/ui/src/python/handlers/mainhandler.py index a3d82f287b8..59b5b5dee3b 100644 --- a/heron/tools/ui/src/python/handlers/mainhandler.py +++ b/heron/tools/ui/src/python/handlers/mainhandler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/ui/src/python/handlers/notfound.py b/heron/tools/ui/src/python/handlers/notfound.py index 57547dca969..57c62a031ea 100644 --- a/heron/tools/ui/src/python/handlers/notfound.py +++ b/heron/tools/ui/src/python/handlers/notfound.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/ui/src/python/handlers/ranges.py b/heron/tools/ui/src/python/handlers/ranges.py index be1f5ec379c..eca3d4286bb 100644 --- a/heron/tools/ui/src/python/handlers/ranges.py +++ b/heron/tools/ui/src/python/handlers/ranges.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/ui/src/python/handlers/topology.py b/heron/tools/ui/src/python/handlers/topology.py index 51985feba74..5ce4c0f9aae 100644 --- a/heron/tools/ui/src/python/handlers/topology.py +++ b/heron/tools/ui/src/python/handlers/topology.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heron/tools/ui/src/python/main.py b/heron/tools/ui/src/python/main.py index ee96365ed4e..3ca49476e2a 100644 --- a/heron/tools/ui/src/python/main.py +++ b/heron/tools/ui/src/python/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/api_constants.py b/heronpy/api/api_constants.py index b9e16e1a077..d4cbf653f67 100644 --- a/heronpy/api/api_constants.py +++ b/heronpy/api/api_constants.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/bolt/window_bolt.py b/heronpy/api/bolt/window_bolt.py index 901e08e88e9..892994c2f19 100644 --- a/heronpy/api/bolt/window_bolt.py +++ b/heronpy/api/bolt/window_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/component/component_spec.py b/heronpy/api/component/component_spec.py index bf134d7b48a..dc00aadadc3 100644 --- a/heronpy/api/component/component_spec.py +++ b/heronpy/api/component/component_spec.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/custom_grouping.py b/heronpy/api/custom_grouping.py index 6c72a30fac2..4654c90d209 100644 --- a/heronpy/api/custom_grouping.py +++ b/heronpy/api/custom_grouping.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/global_metrics.py b/heronpy/api/global_metrics.py index cf052b14a36..a9bf599d1b6 100644 --- a/heronpy/api/global_metrics.py +++ b/heronpy/api/global_metrics.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/metrics.py b/heronpy/api/metrics.py index b944d58d1bf..848d972b120 100644 --- a/heronpy/api/metrics.py +++ b/heronpy/api/metrics.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/serializer.py b/heronpy/api/serializer.py index 6a922f63b8a..4441c43cd03 100644 --- a/heronpy/api/serializer.py +++ b/heronpy/api/serializer.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/spout/spout.py b/heronpy/api/spout/spout.py index 81ff5d73697..504f0820fb8 100644 --- a/heronpy/api/spout/spout.py +++ b/heronpy/api/spout/spout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/state/state.py b/heronpy/api/state/state.py index 7b15481e7d7..43a9d289b2c 100644 --- a/heronpy/api/state/state.py +++ b/heronpy/api/state/state.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/state/stateful_component.py b/heronpy/api/state/stateful_component.py index 33f32af45de..7df55655cf7 100644 --- a/heronpy/api/state/stateful_component.py +++ b/heronpy/api/state/stateful_component.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/task_hook.py b/heronpy/api/task_hook.py index c95a1d8376b..91a863c4eb4 100644 --- a/heronpy/api/task_hook.py +++ b/heronpy/api/task_hook.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/tests/python/component_unittest.py b/heronpy/api/tests/python/component_unittest.py index 9da4a8d95c0..f8b5f46f38f 100644 --- a/heronpy/api/tests/python/component_unittest.py +++ b/heronpy/api/tests/python/component_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/tests/python/metrics_unittest.py b/heronpy/api/tests/python/metrics_unittest.py index 063651a5280..23f35a9af52 100644 --- a/heronpy/api/tests/python/metrics_unittest.py +++ b/heronpy/api/tests/python/metrics_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/tests/python/serializer_unittest.py b/heronpy/api/tests/python/serializer_unittest.py index 65db24a3a94..8b8bf8bc4da 100644 --- a/heronpy/api/tests/python/serializer_unittest.py +++ b/heronpy/api/tests/python/serializer_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/tests/python/stream_unittest.py b/heronpy/api/tests/python/stream_unittest.py index 3869bcb002c..013c1f05eb8 100644 --- a/heronpy/api/tests/python/stream_unittest.py +++ b/heronpy/api/tests/python/stream_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/tests/python/topology_unittest.py b/heronpy/api/tests/python/topology_unittest.py index 80e27aa98d1..bdd172bf124 100644 --- a/heronpy/api/tests/python/topology_unittest.py +++ b/heronpy/api/tests/python/topology_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/topology.py b/heronpy/api/topology.py index c62a6bd4bf3..5de7057a887 100644 --- a/heronpy/api/topology.py +++ b/heronpy/api/topology.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/topology_context.py b/heronpy/api/topology_context.py index e3bb263c904..1a054594c9c 100644 --- a/heronpy/api/topology_context.py +++ b/heronpy/api/topology_context.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/api/tuple.py b/heronpy/api/tuple.py index e21ff5dbb13..e1d07d22fc5 100644 --- a/heronpy/api/tuple.py +++ b/heronpy/api/tuple.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/connectors/mock/arraylooper.py b/heronpy/connectors/mock/arraylooper.py index 3824a2e4db0..b22569674fb 100644 --- a/heronpy/connectors/mock/arraylooper.py +++ b/heronpy/connectors/mock/arraylooper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/connectors/pulsar/pulsarspout.py b/heronpy/connectors/pulsar/pulsarspout.py index 83bc0554293..e81bfb66d1c 100644 --- a/heronpy/connectors/pulsar/pulsarspout.py +++ b/heronpy/connectors/pulsar/pulsarspout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/connectors/pulsar/pulsarstreamlet.py b/heronpy/connectors/pulsar/pulsarstreamlet.py index 319692f888c..2b7665d7484 100644 --- a/heronpy/connectors/pulsar/pulsarstreamlet.py +++ b/heronpy/connectors/pulsar/pulsarstreamlet.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/connectors/textfiles/textfilesgenerator.py b/heronpy/connectors/textfiles/textfilesgenerator.py index 832ada65b44..129e04684a1 100644 --- a/heronpy/connectors/textfiles/textfilesgenerator.py +++ b/heronpy/connectors/textfiles/textfilesgenerator.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/builder.py b/heronpy/streamlet/builder.py index aa2bd22530d..06a27e3f052 100644 --- a/heronpy/streamlet/builder.py +++ b/heronpy/streamlet/builder.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/config.py b/heronpy/streamlet/config.py index d141ccc1fac..bbf10fd6da9 100644 --- a/heronpy/streamlet/config.py +++ b/heronpy/streamlet/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/context.py b/heronpy/streamlet/context.py index f1fe62eeee7..bcfbae2d5aa 100644 --- a/heronpy/streamlet/context.py +++ b/heronpy/streamlet/context.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/consumebolt.py b/heronpy/streamlet/impl/consumebolt.py index ae63e563865..3e84d234265 100644 --- a/heronpy/streamlet/impl/consumebolt.py +++ b/heronpy/streamlet/impl/consumebolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/contextimpl.py b/heronpy/streamlet/impl/contextimpl.py index d944ec71019..d74542dea73 100644 --- a/heronpy/streamlet/impl/contextimpl.py +++ b/heronpy/streamlet/impl/contextimpl.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/filterbolt.py b/heronpy/streamlet/impl/filterbolt.py index 820a56ed0c1..30ffd8a8235 100644 --- a/heronpy/streamlet/impl/filterbolt.py +++ b/heronpy/streamlet/impl/filterbolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/flatmapbolt.py b/heronpy/streamlet/impl/flatmapbolt.py index 19cd07bffc8..3af381d5005 100644 --- a/heronpy/streamlet/impl/flatmapbolt.py +++ b/heronpy/streamlet/impl/flatmapbolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/generatorspout.py b/heronpy/streamlet/impl/generatorspout.py index 4b250ce011b..265b71f0044 100644 --- a/heronpy/streamlet/impl/generatorspout.py +++ b/heronpy/streamlet/impl/generatorspout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/joinbolt.py b/heronpy/streamlet/impl/joinbolt.py index 199e33b87c3..ba708567a64 100644 --- a/heronpy/streamlet/impl/joinbolt.py +++ b/heronpy/streamlet/impl/joinbolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/logbolt.py b/heronpy/streamlet/impl/logbolt.py index 1740b01b0d6..c18ada4ecba 100644 --- a/heronpy/streamlet/impl/logbolt.py +++ b/heronpy/streamlet/impl/logbolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/mapbolt.py b/heronpy/streamlet/impl/mapbolt.py index 34d82bf5f86..444585242d6 100644 --- a/heronpy/streamlet/impl/mapbolt.py +++ b/heronpy/streamlet/impl/mapbolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/reducebykeyandwindowbolt.py b/heronpy/streamlet/impl/reducebykeyandwindowbolt.py index 7cd4a93c857..977ece1789b 100644 --- a/heronpy/streamlet/impl/reducebykeyandwindowbolt.py +++ b/heronpy/streamlet/impl/reducebykeyandwindowbolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/reducebywindowbolt.py b/heronpy/streamlet/impl/reducebywindowbolt.py index 6b09ef714e2..4a76cd2a725 100644 --- a/heronpy/streamlet/impl/reducebywindowbolt.py +++ b/heronpy/streamlet/impl/reducebywindowbolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/repartitionbolt.py b/heronpy/streamlet/impl/repartitionbolt.py index c4a44a1e6f7..78fc49e223f 100644 --- a/heronpy/streamlet/impl/repartitionbolt.py +++ b/heronpy/streamlet/impl/repartitionbolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/streamletboltbase.py b/heronpy/streamlet/impl/streamletboltbase.py index 0d6af23ca50..b4fbd7e9168 100644 --- a/heronpy/streamlet/impl/streamletboltbase.py +++ b/heronpy/streamlet/impl/streamletboltbase.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/streamletspoutbase.py b/heronpy/streamlet/impl/streamletspoutbase.py index 46b6944c7d5..260957c20b7 100644 --- a/heronpy/streamlet/impl/streamletspoutbase.py +++ b/heronpy/streamlet/impl/streamletspoutbase.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/supplierspout.py b/heronpy/streamlet/impl/supplierspout.py index af656c32d8f..46e18339eee 100644 --- a/heronpy/streamlet/impl/supplierspout.py +++ b/heronpy/streamlet/impl/supplierspout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/transformbolt.py b/heronpy/streamlet/impl/transformbolt.py index 4bf9fee6242..a0906a91178 100644 --- a/heronpy/streamlet/impl/transformbolt.py +++ b/heronpy/streamlet/impl/transformbolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/impl/unionbolt.py b/heronpy/streamlet/impl/unionbolt.py index 76ed95792bc..fb9b3c5126f 100644 --- a/heronpy/streamlet/impl/unionbolt.py +++ b/heronpy/streamlet/impl/unionbolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/keyedwindow.py b/heronpy/streamlet/keyedwindow.py index b5255dcdf77..51c84f1ccb9 100644 --- a/heronpy/streamlet/keyedwindow.py +++ b/heronpy/streamlet/keyedwindow.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/resources.py b/heronpy/streamlet/resources.py index 75782c1c0a1..e4be526b0d9 100644 --- a/heronpy/streamlet/resources.py +++ b/heronpy/streamlet/resources.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/runner.py b/heronpy/streamlet/runner.py index 2d3d73d586c..a955b42ecda 100644 --- a/heronpy/streamlet/runner.py +++ b/heronpy/streamlet/runner.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/streamlet.py b/heronpy/streamlet/streamlet.py index cad88dce596..4fd83f6f005 100644 --- a/heronpy/streamlet/streamlet.py +++ b/heronpy/streamlet/streamlet.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/window.py b/heronpy/streamlet/window.py index 04b895db44f..4113bc4c070 100644 --- a/heronpy/streamlet/window.py +++ b/heronpy/streamlet/window.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/heronpy/streamlet/windowconfig.py b/heronpy/streamlet/windowconfig.py index 1fa0fb54bb7..f0ce7d8e493 100644 --- a/heronpy/streamlet/windowconfig.py +++ b/heronpy/streamlet/windowconfig.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/common/status.py b/integration_test/src/python/common/status.py index d2f69e4bc12..876b3e84faa 100644 --- a/integration_test/src/python/common/status.py +++ b/integration_test/src/python/common/status.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/common/bolt/count_aggregator_bolt.py b/integration_test/src/python/integration_test/common/bolt/count_aggregator_bolt.py index d18ec245840..6bfe7c368a2 100644 --- a/integration_test/src/python/integration_test/common/bolt/count_aggregator_bolt.py +++ b/integration_test/src/python/integration_test/common/bolt/count_aggregator_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/common/bolt/double_tuples_bolt.py b/integration_test/src/python/integration_test/common/bolt/double_tuples_bolt.py index 561db78ce13..68341b475ec 100644 --- a/integration_test/src/python/integration_test/common/bolt/double_tuples_bolt.py +++ b/integration_test/src/python/integration_test/common/bolt/double_tuples_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/common/bolt/identity_bolt.py b/integration_test/src/python/integration_test/common/bolt/identity_bolt.py index 4740f38d99d..1680ce327cc 100644 --- a/integration_test/src/python/integration_test/common/bolt/identity_bolt.py +++ b/integration_test/src/python/integration_test/common/bolt/identity_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/common/bolt/word_count_bolt.py b/integration_test/src/python/integration_test/common/bolt/word_count_bolt.py index 6824309bee0..823aac31ecf 100644 --- a/integration_test/src/python/integration_test/common/bolt/word_count_bolt.py +++ b/integration_test/src/python/integration_test/common/bolt/word_count_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/common/spout/ab_spout.py b/integration_test/src/python/integration_test/common/spout/ab_spout.py index 828420c69a1..58d1c592f54 100644 --- a/integration_test/src/python/integration_test/common/spout/ab_spout.py +++ b/integration_test/src/python/integration_test/common/spout/ab_spout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/core/aggregator_bolt.py b/integration_test/src/python/integration_test/core/aggregator_bolt.py index 4fd6cf12e2a..d2047c50b0c 100644 --- a/integration_test/src/python/integration_test/core/aggregator_bolt.py +++ b/integration_test/src/python/integration_test/core/aggregator_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/core/batch_bolt.py b/integration_test/src/python/integration_test/core/batch_bolt.py index d35f09e386b..ecaa4c64415 100644 --- a/integration_test/src/python/integration_test/core/batch_bolt.py +++ b/integration_test/src/python/integration_test/core/batch_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/core/constants.py b/integration_test/src/python/integration_test/core/constants.py index 5b72cd3d758..0530928e647 100644 --- a/integration_test/src/python/integration_test/core/constants.py +++ b/integration_test/src/python/integration_test/core/constants.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/core/integration_test_bolt.py b/integration_test/src/python/integration_test/core/integration_test_bolt.py index cfb4d7d339d..ea51c4cb7a5 100644 --- a/integration_test/src/python/integration_test/core/integration_test_bolt.py +++ b/integration_test/src/python/integration_test/core/integration_test_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/core/integration_test_spout.py b/integration_test/src/python/integration_test/core/integration_test_spout.py index 7c7ddccae75..4edd807703a 100644 --- a/integration_test/src/python/integration_test/core/integration_test_spout.py +++ b/integration_test/src/python/integration_test/core/integration_test_spout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/core/terminal_bolt.py b/integration_test/src/python/integration_test/core/terminal_bolt.py index c4f6afa44b6..6a868bbfa4a 100644 --- a/integration_test/src/python/integration_test/core/terminal_bolt.py +++ b/integration_test/src/python/integration_test/core/terminal_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/core/test_runner.py b/integration_test/src/python/integration_test/core/test_runner.py index a4b6a10dbaa..eb5285fc46c 100644 --- a/integration_test/src/python/integration_test/core/test_runner.py +++ b/integration_test/src/python/integration_test/core/test_runner.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/core/test_topology_builder.py b/integration_test/src/python/integration_test/core/test_topology_builder.py index d64a87401e6..6881644734d 100644 --- a/integration_test/src/python/integration_test/core/test_topology_builder.py +++ b/integration_test/src/python/integration_test/core/test_topology_builder.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/all_grouping/all_grouping.py b/integration_test/src/python/integration_test/topology/all_grouping/all_grouping.py index 8febd7be66a..6c71b954b9b 100644 --- a/integration_test/src/python/integration_test/topology/all_grouping/all_grouping.py +++ b/integration_test/src/python/integration_test/topology/all_grouping/all_grouping.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/basic_one_task/basic_one_task.py b/integration_test/src/python/integration_test/topology/basic_one_task/basic_one_task.py index da1edcb1f51..08e232c9090 100644 --- a/integration_test/src/python/integration_test/topology/basic_one_task/basic_one_task.py +++ b/integration_test/src/python/integration_test/topology/basic_one_task/basic_one_task.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/bolt_double_emit_tuples/bolt_double_emit_tuples.py b/integration_test/src/python/integration_test/topology/bolt_double_emit_tuples/bolt_double_emit_tuples.py index c4ddee1e941..fa817e7cdf0 100644 --- a/integration_test/src/python/integration_test/topology/bolt_double_emit_tuples/bolt_double_emit_tuples.py +++ b/integration_test/src/python/integration_test/topology/bolt_double_emit_tuples/bolt_double_emit_tuples.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/fields_grouping/fields_grouping.py b/integration_test/src/python/integration_test/topology/fields_grouping/fields_grouping.py index 8de71679884..5aa00f4d4d7 100644 --- a/integration_test/src/python/integration_test/topology/fields_grouping/fields_grouping.py +++ b/integration_test/src/python/integration_test/topology/fields_grouping/fields_grouping.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/global_grouping/global_grouping.py b/integration_test/src/python/integration_test/topology/global_grouping/global_grouping.py index 898beb6b6c2..7a624244c57 100644 --- a/integration_test/src/python/integration_test/topology/global_grouping/global_grouping.py +++ b/integration_test/src/python/integration_test/topology/global_grouping/global_grouping.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/multi_spouts_multi_tasks/multi_spouts_multi_tasks.py b/integration_test/src/python/integration_test/topology/multi_spouts_multi_tasks/multi_spouts_multi_tasks.py index 52af55b9fae..2d56adefacd 100644 --- a/integration_test/src/python/integration_test/topology/multi_spouts_multi_tasks/multi_spouts_multi_tasks.py +++ b/integration_test/src/python/integration_test/topology/multi_spouts_multi_tasks/multi_spouts_multi_tasks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/none_grouping/none_grouping.py b/integration_test/src/python/integration_test/topology/none_grouping/none_grouping.py index c69609475c2..66dcd3613aa 100644 --- a/integration_test/src/python/integration_test/topology/none_grouping/none_grouping.py +++ b/integration_test/src/python/integration_test/topology/none_grouping/none_grouping.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/one_bolt_multi_tasks/one_bolt_multi_tasks.py b/integration_test/src/python/integration_test/topology/one_bolt_multi_tasks/one_bolt_multi_tasks.py index b2d808c0f4c..c94b6220fd8 100644 --- a/integration_test/src/python/integration_test/topology/one_bolt_multi_tasks/one_bolt_multi_tasks.py +++ b/integration_test/src/python/integration_test/topology/one_bolt_multi_tasks/one_bolt_multi_tasks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/one_spout_bolt_multi_tasks/one_spout_bolt_multi_tasks.py b/integration_test/src/python/integration_test/topology/one_spout_bolt_multi_tasks/one_spout_bolt_multi_tasks.py index f0716cb8244..6b0ce646489 100644 --- a/integration_test/src/python/integration_test/topology/one_spout_bolt_multi_tasks/one_spout_bolt_multi_tasks.py +++ b/integration_test/src/python/integration_test/topology/one_spout_bolt_multi_tasks/one_spout_bolt_multi_tasks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/one_spout_multi_tasks/one_spout_multi_tasks.py b/integration_test/src/python/integration_test/topology/one_spout_multi_tasks/one_spout_multi_tasks.py index 310f15e72e9..0a5559757ef 100644 --- a/integration_test/src/python/integration_test/topology/one_spout_multi_tasks/one_spout_multi_tasks.py +++ b/integration_test/src/python/integration_test/topology/one_spout_multi_tasks/one_spout_multi_tasks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/one_spout_two_bolts/one_spout_two_bolts.py b/integration_test/src/python/integration_test/topology/one_spout_two_bolts/one_spout_two_bolts.py index adf9b5f8daf..83ba5ac611b 100644 --- a/integration_test/src/python/integration_test/topology/one_spout_two_bolts/one_spout_two_bolts.py +++ b/integration_test/src/python/integration_test/topology/one_spout_two_bolts/one_spout_two_bolts.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/shuffle_grouping/shuffle_grouping.py b/integration_test/src/python/integration_test/topology/shuffle_grouping/shuffle_grouping.py index 5bd2bbdc2ea..dafec6be6b3 100644 --- a/integration_test/src/python/integration_test/topology/shuffle_grouping/shuffle_grouping.py +++ b/integration_test/src/python/integration_test/topology/shuffle_grouping/shuffle_grouping.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/streamlet/word_count_streamlet.py b/integration_test/src/python/integration_test/topology/streamlet/word_count_streamlet.py index 7cdc51fba6e..704bac3a7ab 100644 --- a/integration_test/src/python/integration_test/topology/streamlet/word_count_streamlet.py +++ b/integration_test/src/python/integration_test/topology/streamlet/word_count_streamlet.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/integration_test/topology/test_topology_main.py b/integration_test/src/python/integration_test/topology/test_topology_main.py index e9b41c19d9d..a83ca597fd4 100644 --- a/integration_test/src/python/integration_test/topology/test_topology_main.py +++ b/integration_test/src/python/integration_test/topology/test_topology_main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/local_test_runner/main.py b/integration_test/src/python/local_test_runner/main.py index 37e59f4fe56..cf45651b0d5 100644 --- a/integration_test/src/python/local_test_runner/main.py +++ b/integration_test/src/python/local_test_runner/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/local_test_runner/test_kill_bolt.py b/integration_test/src/python/local_test_runner/test_kill_bolt.py index 01945e26e5f..92489611512 100644 --- a/integration_test/src/python/local_test_runner/test_kill_bolt.py +++ b/integration_test/src/python/local_test_runner/test_kill_bolt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/local_test_runner/test_kill_metricsmgr.py b/integration_test/src/python/local_test_runner/test_kill_metricsmgr.py index dbff9c1aac4..e8cc9292172 100644 --- a/integration_test/src/python/local_test_runner/test_kill_metricsmgr.py +++ b/integration_test/src/python/local_test_runner/test_kill_metricsmgr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/local_test_runner/test_kill_stmgr.py b/integration_test/src/python/local_test_runner/test_kill_stmgr.py index bdb28f4c320..0b34e63d14c 100644 --- a/integration_test/src/python/local_test_runner/test_kill_stmgr.py +++ b/integration_test/src/python/local_test_runner/test_kill_stmgr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/local_test_runner/test_kill_stmgr_metricsmgr.py b/integration_test/src/python/local_test_runner/test_kill_stmgr_metricsmgr.py index 5ae9f6aa9b9..ac54d3511a2 100644 --- a/integration_test/src/python/local_test_runner/test_kill_stmgr_metricsmgr.py +++ b/integration_test/src/python/local_test_runner/test_kill_stmgr_metricsmgr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/local_test_runner/test_kill_tmaster.py b/integration_test/src/python/local_test_runner/test_kill_tmaster.py index ea7f6c65696..573519b6238 100644 --- a/integration_test/src/python/local_test_runner/test_kill_tmaster.py +++ b/integration_test/src/python/local_test_runner/test_kill_tmaster.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/local_test_runner/test_scale_up.py b/integration_test/src/python/local_test_runner/test_scale_up.py index 93d3faeb4bc..330f62e9836 100644 --- a/integration_test/src/python/local_test_runner/test_scale_up.py +++ b/integration_test/src/python/local_test_runner/test_scale_up.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/integration_test/src/python/local_test_runner/test_template.py b/integration_test/src/python/local_test_runner/test_template.py index 3ad5fa5fddf..e8ee82ead41 100644 --- a/integration_test/src/python/local_test_runner/test_template.py +++ b/integration_test/src/python/local_test_runner/test_template.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one diff --git a/scripts/shutils/save-logs.py b/scripts/shutils/save-logs.py index c378936b411..5ac5b670f29 100755 --- a/scripts/shutils/save-logs.py +++ b/scripts/shutils/save-logs.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/third_party/python/cpplint/cpplint.py b/third_party/python/cpplint/cpplint.py index c30a3bc91d2..4e196e8ea3f 100755 --- a/third_party/python/cpplint/cpplint.py +++ b/third_party/python/cpplint/cpplint.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright (c) 2009 Google Inc. All rights reserved. # diff --git a/tools/bazel.rc b/tools/bazel.rc index 0e350971f90..6c625477283 100644 --- a/tools/bazel.rc +++ b/tools/bazel.rc @@ -17,7 +17,7 @@ build --genrule_strategy=standalone -build --host_force_python=PY2 +build --host_force_python=PY3 build --ignore_unsupported_sandboxing build --spawn_strategy=standalone build --workspace_status_command scripts/release/status.sh diff --git a/tools/rules/pex/wrapper/pex_wrapper.py b/tools/rules/pex/wrapper/pex_wrapper.py index d93bf9899a1..0a54d33b3b2 100644 --- a/tools/rules/pex/wrapper/pex_wrapper.py +++ b/tools/rules/pex/wrapper/pex_wrapper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 # Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License");