From 65a6460d6e11bb42bbf891ecb0980eba9794b7aa Mon Sep 17 00:00:00 2001 From: Aditya Bansal Date: Sun, 7 May 2017 20:15:29 +0530 Subject: [PATCH] pep8: Add compliance with rule E261 to zephyr_mirror_backend.py. --- bots/zephyr_mirror_backend.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index a3f05f4..248f401 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -30,7 +30,7 @@ from six.moves import range try: import simplejson except ImportError: - import json as simplejson # type: ignore + import json as simplejson # type: ignore import re import time import subprocess @@ -51,7 +51,7 @@ class States(object): Startup, ZulipToZephyr, ZephyrToZulip, ChildSending = list(range(4)) CURRENT_STATE = States.Startup -logger = None # type: logging.Logger +logger = None # type: logging.Logger def to_zulip_username(zephyr_username): # type: (str) -> str @@ -1076,7 +1076,7 @@ if __name__ == "__main__": # The properties available on 'options' are dynamically # determined, so we have to treat it as an Any for type # annotations. - (options, args) = parse_args() # type: Any, List[str] + (options, args) = parse_args() # type: Any, List[str] logger = open_logger() configure_logger(logger, "parent") @@ -1164,7 +1164,7 @@ or specify the --api-key-file option.""" % (options.api_key_file,)))) options.session_path = "/var/tmp/%s" % (options.user,) if options.forward_from_zulip: - child_pid = os.fork() # type: int + child_pid = os.fork() # type: int if child_pid == 0: CURRENT_STATE = States.ZulipToZephyr # Run the zulip => zephyr mirror in the child