mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-30 17:59:22 +01:00
assembler import fix (#319)
* assembler import fix. * Added noqa to import statements.
This commit is contained in:
parent
3bfb975ed9
commit
4e945ca4de
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user