From: Zooko O'Whielacronx Date: Wed, 13 Feb 2008 14:38:08 +0000 (-0700) Subject: fix a few unused imports and suchlike, discovered by pyflakes X-Git-Tag: allmydata-tahoe-0.8.0~82 X-Git-Url: https://git.rkrishnan.org/uri/URI:DIR2-RO:%5B%5E?a=commitdiff_plain;h=e89edf8803a7f90ba7efc8e9cf77b208d95ca053;p=tahoe-lafs%2Ftahoe-lafs.git fix a few unused imports and suchlike, discovered by pyflakes --- diff --git a/src/allmydata/scripts/debug.py b/src/allmydata/scripts/debug.py index 36bef836..12a53441 100644 --- a/src/allmydata/scripts/debug.py +++ b/src/allmydata/scripts/debug.py @@ -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: diff --git a/src/allmydata/test/test_base62.py b/src/allmydata/test/test_base62.py index 833d96a8..83fb7402 100644 --- a/src/allmydata/test/test_base62.py +++ b/src/allmydata/test/test_base62.py @@ -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__": diff --git a/src/allmydata/test/test_helper.py b/src/allmydata/test/test_helper.py index 31468fff..9b0d0b0c 100644 --- a/src/allmydata/test/test_helper.py +++ b/src/allmydata/test/test_helper.py @@ -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 diff --git a/src/allmydata/util/base62.py b/src/allmydata/util/base62.py index 638d045c..473cadcd 100644 --- a/src/allmydata/util/base62.py +++ b/src/allmydata/util/base62.py @@ -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"