mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 03:06:33 +00:00
fix a few unused imports and suchlike, discovered by pyflakes
This commit is contained in:
parent
55d30790bc
commit
e89edf8803
@ -328,7 +328,6 @@ def find_shares(config, out=sys.stdout, err=sys.stderr):
|
||||
/home/warner/testnet/node-2/storage/shares/44k/44kai1tui348689nrw8fjegc8c/2
|
||||
"""
|
||||
from allmydata import storage
|
||||
from allmydata.util import idlib
|
||||
|
||||
sharedir = storage.storage_index_to_dir(storage.si_a2b(config.si_s))
|
||||
for d in config.nodedirs:
|
||||
|
@ -37,9 +37,6 @@ class T(unittest.TestCase):
|
||||
def test_ende_0x0100(self):
|
||||
return self._test_ende('\x01\x00')
|
||||
|
||||
def test_ende_0x010000(self):
|
||||
return self._test_ende('\x01\x00\x00')
|
||||
|
||||
def test_ende_0x000000(self):
|
||||
return self._test_ende('\x00\x00\x00')
|
||||
|
||||
@ -70,7 +67,7 @@ class T(unittest.TestCase):
|
||||
assert bs == bs2l
|
||||
|
||||
def suite():
|
||||
suite = unittest.makeSuite(base62TestCase, 'test')
|
||||
suite = unittest.makeSuite(T, 'test')
|
||||
return suite
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
@ -7,7 +7,7 @@ from foolscap import Tub, eventual
|
||||
from foolscap.logging import log
|
||||
|
||||
from allmydata import offloaded, storage, upload
|
||||
from allmydata.util import hashutil, fileutil, idlib, mathutil
|
||||
from allmydata.util import hashutil, fileutil, mathutil
|
||||
from pycryptopp.cipher.aes import AES
|
||||
|
||||
MiB = 1024*1024
|
||||
|
@ -9,7 +9,7 @@
|
||||
# from the Python Standard Library
|
||||
import string
|
||||
|
||||
from allmydata.util.mathutil import div_ceil, log_ceil, log_floor
|
||||
from allmydata.util.mathutil import log_ceil, log_floor
|
||||
|
||||
chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user