Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
sbws
Commits
f8b895ca
Commit
f8b895ca
authored
Apr 10, 2018
by
Matt Traudt
Browse files
Fix all linting errors, mostly unused 'import time'
parent
e9d9deb2
Changes
8
Hide whitespace changes
Inline
Side-by-side
sbws/core/cleanup.py
View file @
f8b895ca
...
...
@@ -4,7 +4,6 @@ from datetime import date
from
datetime
import
timedelta
from
glob
import
glob
import
os
import
time
import
gzip
import
shutil
...
...
sbws/core/generate.py
View file @
f8b895ca
...
...
@@ -6,7 +6,6 @@ from sbws.lib.resultdump import group_results_by_relay
from
argparse
import
ArgumentDefaultsHelpFormatter
from
statistics
import
median
import
os
import
time
class
V3BWLine
:
...
...
sbws/core/server.py
View file @
f8b895ca
from
..util.simpleauth
import
authenticate_client
from
..util.sockio
import
read_line
from
sbws.globals
import
(
fail_hard
,
is_initted
,
time_now
)
from
sbws.globals
import
(
fail_hard
,
is_initted
)
from
sbws.globals
import
(
MIN_REQ_BYTES
,
MAX_REQ_BYTES
,
SOCKET_TIMEOUT
)
from
argparse
import
ArgumentDefaultsHelpFormatter
from
functools
import
lru_cache
...
...
sbws/lib/circuitbuilder.py
View file @
f8b895ca
...
...
@@ -228,7 +228,7 @@ class GapsCircuitBuilder(CircuitBuilder):
assert
len
(
insert_relays
)
==
num_missing
path
=
[
r
.
fingerprint
if
r
else
insert_relays
.
pop
().
fingerprint
for
r
in
path
]
#self.log.info('building', '->'.join([r[0:8] for r in path]))
#
self.log.info('building', '->'.join([r[0:8] for r in path]))
return
self
.
_build_circuit_impl
(
path
)
...
...
sbws/lib/relaylist.py
View file @
f8b895ca
from
sbws.globals
import
time_now
import
sbws.util.stem
as
stem_utils
from
stem
import
Flag
import
time
import
random
...
...
sbws/lib/relayprioritizer.py
View file @
f8b895ca
...
...
@@ -4,7 +4,6 @@ from ..lib.resultdump import Result
from
..lib.resultdump
import
ResultError
from
..lib.relaylist
import
RelayList
from
sbws.globals
import
time_now
import
time
import
copy
...
...
sbws/lib/resultdump.py
View file @
f8b895ca
from
sbws.globals
import
time_now
import
os
import
time
import
json
from
glob
import
glob
from
threading
import
Thread
...
...
sbws/util/config.py
View file @
f8b895ca
...
...
@@ -9,6 +9,7 @@ _ALPHANUM += '0123456789'
_HEX
=
'0123456789ABCDEF'
def
_read_config_file
(
conf
,
fname
,
log_fn
=
print
):
assert
os
.
path
.
isfile
(
fname
)
log_fn
(
'Reading config file'
,
fname
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment