From f50548d64405a16eb07ce00ca40adccb37fcdfbe Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 29 Jul 2016 20:14:08 -0700 Subject: [PATCH] zephyr_mirror: Add typing import. --- bots/zephyr_mirror.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bots/zephyr_mirror.py b/bots/zephyr_mirror.py index 6f4d1ef..165badc 100755 --- a/bots/zephyr_mirror.py +++ b/bots/zephyr_mirror.py @@ -31,15 +31,17 @@ import signal from .zephyr_mirror_backend import parse_args +(options, args) = parse_args() + +sys.path[:0] = [os.path.join(options.root_path, 'api')] +from typing import Any + def die(signal, frame): # We actually want to exit, so run os._exit (so as not to be caught and restarted) os._exit(1) signal.signal(signal.SIGINT, die) -(options, args) = parse_args() - -sys.path[:0] = [os.path.join(options.root_path, 'api')] from zulip import RandomExponentialBackoff args = [os.path.join(options.root_path, "user_root", "zephyr_mirror_backend.py")]