assembler import fix (#319)

* assembler import fix.
* Added noqa to import statements.
This commit is contained in:
Thomas Bouve 2019-02-14 02:11:11 +01:00 committed by Brian May
parent 3bfb975ed9
commit 4e945ca4de

View File

@ -2,10 +2,6 @@ import sys
import zlib
import imp
import sshuttle.helpers
import sshuttle.cmdline_options as options
from sshuttle.server import main
verbosity = verbosity # noqa: F821 must be a previously defined global
z = zlib.decompressobj()
while 1:
@ -34,7 +30,12 @@ while 1:
sys.stderr.flush()
sys.stdout.flush()
# import can only happen once the code has been transferred to
# the server. 'noqa: E402' excludes these lines from QA checks.
import sshuttle.helpers # noqa: E402
sshuttle.helpers.verbose = verbosity
import sshuttle.cmdline_options as options # noqa: E402
from sshuttle.server import main # noqa: E402
main(options.latency_control, options.auto_hosts, options.to_nameserver,
options.auto_nets)