pep8: Add compliance with rule E261 to zephyr_mirror_backend.py.
This commit is contained in:
parent
ab3cbd313b
commit
65a6460d6e
|
@ -30,7 +30,7 @@ from six.moves import range
|
||||||
try:
|
try:
|
||||||
import simplejson
|
import simplejson
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import json as simplejson # type: ignore
|
import json as simplejson # type: ignore
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -51,7 +51,7 @@ class States(object):
|
||||||
Startup, ZulipToZephyr, ZephyrToZulip, ChildSending = list(range(4))
|
Startup, ZulipToZephyr, ZephyrToZulip, ChildSending = list(range(4))
|
||||||
CURRENT_STATE = States.Startup
|
CURRENT_STATE = States.Startup
|
||||||
|
|
||||||
logger = None # type: logging.Logger
|
logger = None # type: logging.Logger
|
||||||
|
|
||||||
def to_zulip_username(zephyr_username):
|
def to_zulip_username(zephyr_username):
|
||||||
# type: (str) -> str
|
# type: (str) -> str
|
||||||
|
@ -1076,7 +1076,7 @@ if __name__ == "__main__":
|
||||||
# The properties available on 'options' are dynamically
|
# The properties available on 'options' are dynamically
|
||||||
# determined, so we have to treat it as an Any for type
|
# determined, so we have to treat it as an Any for type
|
||||||
# annotations.
|
# annotations.
|
||||||
(options, args) = parse_args() # type: Any, List[str]
|
(options, args) = parse_args() # type: Any, List[str]
|
||||||
|
|
||||||
logger = open_logger()
|
logger = open_logger()
|
||||||
configure_logger(logger, "parent")
|
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,)
|
options.session_path = "/var/tmp/%s" % (options.user,)
|
||||||
|
|
||||||
if options.forward_from_zulip:
|
if options.forward_from_zulip:
|
||||||
child_pid = os.fork() # type: int
|
child_pid = os.fork() # type: int
|
||||||
if child_pid == 0:
|
if child_pid == 0:
|
||||||
CURRENT_STATE = States.ZulipToZephyr
|
CURRENT_STATE = States.ZulipToZephyr
|
||||||
# Run the zulip => zephyr mirror in the child
|
# Run the zulip => zephyr mirror in the child
|
||||||
|
|
Loading…
Reference in a new issue