From 3d08a58fb85524285eec79fe3c335064f2af2ce2 Mon Sep 17 00:00:00 2001 From: Nicholas Nezis Date: Thu, 5 Mar 2020 23:29:06 -0500 Subject: [PATCH] Putting Python aliases logic back --- heron/shell/src/python/handlers/killexecutorhandler.py | 6 +++--- heron/tools/cli/src/python/submit.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/heron/shell/src/python/handlers/killexecutorhandler.py b/heron/shell/src/python/handlers/killexecutorhandler.py index 0e245693de7..6a0416122af 100644 --- a/heron/shell/src/python/handlers/killexecutorhandler.py +++ b/heron/shell/src/python/handlers/killexecutorhandler.py @@ -20,14 +20,14 @@ ''' killexecutorhandler.py ''' +from future.standard_library import install_aliases +install_aliases() + import logging import os import signal from urllib.parse import parse_qsl -from future.standard_library import install_aliases -install_aliases() - import tornado.web from tornado.options import options diff --git a/heron/tools/cli/src/python/submit.py b/heron/tools/cli/src/python/submit.py index a1cb9a61583..2a9c2298bcd 100644 --- a/heron/tools/cli/src/python/submit.py +++ b/heron/tools/cli/src/python/submit.py @@ -19,6 +19,9 @@ # under the License. ''' submit.py ''' +from future.standard_library import install_aliases +install_aliases() + import glob import logging import os @@ -27,9 +30,6 @@ from urllib.parse import urlparse import requests -from future.standard_library import install_aliases -install_aliases() - from heron.common.src.python.utils.log import Log from heron.proto import topology_pb2 from heron.tools.cli.src.python.result import SimpleResult, Status