fix a few unused imports and suchlike, discovered by pyflakes

This commit is contained in:
Zooko O'Whielacronx 2008-02-13 07:38:08 -07:00
parent 55d30790bc
commit e89edf8803
4 changed files with 3 additions and 7 deletions

View File

@ -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:

View File

@ -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__":

View File

@ -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

View File

@ -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"