From: Brian Warner Date: Mon, 12 Jan 2009 22:41:20 +0000 (-0700) Subject: hush pyflakes by removing unused imports X-Git-Tag: allmydata-tahoe-1.3.0~205 X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/status?a=commitdiff_plain;h=fe362c0021b4fd19335e96aa055c5063a985eeff;p=tahoe-lafs%2Ftahoe-lafs.git hush pyflakes by removing unused imports --- diff --git a/src/allmydata/immutable/download.py b/src/allmydata/immutable/download.py index afb9d0b6..4f6ad852 100644 --- a/src/allmydata/immutable/download.py +++ b/src/allmydata/immutable/download.py @@ -6,7 +6,7 @@ from twisted.application import service from foolscap import DeadReferenceError from foolscap.eventual import eventually -from allmydata.util import base32, deferredutil, hashutil, log, mathutil, observer +from allmydata.util import base32, deferredutil, hashutil, log, mathutil from allmydata.util.assertutil import _assert, precondition from allmydata.util.rrefutil import ServerFailure from allmydata import codec, hashtree, uri diff --git a/src/allmydata/immutable/repairer.py b/src/allmydata/immutable/repairer.py index 3c9e48b7..f95a2268 100644 --- a/src/allmydata/immutable/repairer.py +++ b/src/allmydata/immutable/repairer.py @@ -1,14 +1,13 @@ from zope.interface import implements from twisted.internet import defer from allmydata import storage -from allmydata.check_results import CheckResults, CheckAndRepairResults from allmydata.util import log, observer from allmydata.util.assertutil import precondition from allmydata.uri import CHKFileVerifierURI from allmydata.interfaces import IEncryptedUploadable, IDownloadTarget from twisted.internet.interfaces import IConsumer -from allmydata.immutable import download, layout, upload +from allmydata.immutable import download, upload import collections diff --git a/src/allmydata/test/test_immutable.py b/src/allmydata/test/test_immutable.py index b782f6d9..cf46d00d 100644 --- a/src/allmydata/test/test_immutable.py +++ b/src/allmydata/test/test_immutable.py @@ -1,13 +1,8 @@ from allmydata.test import common -from allmydata.monitor import Monitor -from allmydata import check_results -from allmydata.interfaces import IURI, NotEnoughSharesError -from allmydata.immutable import upload -from allmydata.util import hashutil, log +from allmydata.interfaces import NotEnoughSharesError from twisted.internet import defer from twisted.trial import unittest -import random, struct -import common_util as testutil +import random class Test(common.ShareManglingMixin, unittest.TestCase): def test_test_code(self): diff --git a/src/allmydata/test/test_repairer.py b/src/allmydata/test/test_repairer.py index b57600ad..17d3ac29 100644 --- a/src/allmydata/test/test_repairer.py +++ b/src/allmydata/test/test_repairer.py @@ -1,13 +1,10 @@ from allmydata.test import common from allmydata.monitor import Monitor from allmydata import check_results -from allmydata.interfaces import IURI, NotEnoughSharesError -from allmydata.immutable import upload -from allmydata.util import hashutil, log +from allmydata.interfaces import NotEnoughSharesError from twisted.internet import defer from twisted.trial import unittest -import random, struct -import common_util as testutil +import random READ_LEEWAY = 18 # We'll allow you to pass this test even if you trigger eighteen times as many disk reads and block fetches as would be optimal. DELTA_READS = 10 * READ_LEEWAY # N = 10