Commit f8b895ca authored by Matt Traudt's avatar Matt Traudt
Browse files

Fix all linting errors, mostly unused 'import time'

parent e9d9deb2
...@@ -4,7 +4,6 @@ from datetime import date ...@@ -4,7 +4,6 @@ from datetime import date
from datetime import timedelta from datetime import timedelta
from glob import glob from glob import glob
import os import os
import time
import gzip import gzip
import shutil import shutil
......
...@@ -6,7 +6,6 @@ from sbws.lib.resultdump import group_results_by_relay ...@@ -6,7 +6,6 @@ from sbws.lib.resultdump import group_results_by_relay
from argparse import ArgumentDefaultsHelpFormatter from argparse import ArgumentDefaultsHelpFormatter
from statistics import median from statistics import median
import os import os
import time
class V3BWLine: class V3BWLine:
......
from ..util.simpleauth import authenticate_client from ..util.simpleauth import authenticate_client
from ..util.sockio import read_line 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 sbws.globals import (MIN_REQ_BYTES, MAX_REQ_BYTES, SOCKET_TIMEOUT)
from argparse import ArgumentDefaultsHelpFormatter from argparse import ArgumentDefaultsHelpFormatter
from functools import lru_cache from functools import lru_cache
......
...@@ -228,7 +228,7 @@ class GapsCircuitBuilder(CircuitBuilder): ...@@ -228,7 +228,7 @@ class GapsCircuitBuilder(CircuitBuilder):
assert len(insert_relays) == num_missing assert len(insert_relays) == num_missing
path = [r.fingerprint if r else insert_relays.pop().fingerprint path = [r.fingerprint if r else insert_relays.pop().fingerprint
for r in path] 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) return self._build_circuit_impl(path)
......
from sbws.globals import time_now from sbws.globals import time_now
import sbws.util.stem as stem_utils import sbws.util.stem as stem_utils
from stem import Flag from stem import Flag
import time
import random import random
......
...@@ -4,7 +4,6 @@ from ..lib.resultdump import Result ...@@ -4,7 +4,6 @@ from ..lib.resultdump import Result
from ..lib.resultdump import ResultError from ..lib.resultdump import ResultError
from ..lib.relaylist import RelayList from ..lib.relaylist import RelayList
from sbws.globals import time_now from sbws.globals import time_now
import time
import copy import copy
......
from sbws.globals import time_now from sbws.globals import time_now
import os import os
import time
import json import json
from glob import glob from glob import glob
from threading import Thread from threading import Thread
......
...@@ -9,6 +9,7 @@ _ALPHANUM += '0123456789' ...@@ -9,6 +9,7 @@ _ALPHANUM += '0123456789'
_HEX = '0123456789ABCDEF' _HEX = '0123456789ABCDEF'
def _read_config_file(conf, fname, log_fn=print): def _read_config_file(conf, fname, log_fn=print):
assert os.path.isfile(fname) assert os.path.isfile(fname)
log_fn('Reading config file', fname) log_fn('Reading config file', fname)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment