From fc87dfb066b03690948cebbdc694e0d59200dbff Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 4 Aug 2015 18:29:44 +0100 Subject: [PATCH] Use existing Namespace class. Signed-off-by: Daira Hopwood --- src/allmydata/storage/backends/cloud/mutable.py | 5 +---- src/allmydata/test/test_storage.py | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/allmydata/storage/backends/cloud/mutable.py b/src/allmydata/storage/backends/cloud/mutable.py index 7c9a2ead..1b2ae8f7 100644 --- a/src/allmydata/storage/backends/cloud/mutable.py +++ b/src/allmydata/storage/backends/cloud/mutable.py @@ -10,6 +10,7 @@ from zope.interface import implements from allmydata.interfaces import IMutableShare, BadWriteEnablerError from allmydata.util import idlib, log from allmydata.util.assertutil import precondition, _assert +from allmydata.util.namespace import Namespace from allmydata.util.mathutil import div_ceil from allmydata.util.hashutil import timing_safe_compare from allmydata.storage.common import CorruptStoredShareError, UnknownMutableContainerVersionError, \ @@ -42,10 +43,6 @@ assert struct.calcsize(">L") == 4, struct.calcsize(">L") assert struct.calcsize(">Q") == 8, struct.calcsize(">Q") -class Namespace(object): - pass - - class MutableCloudShare(CloudShareBase, CloudShareReaderMixin): implements(IMutableShare) diff --git a/src/allmydata/test/test_storage.py b/src/allmydata/test/test_storage.py index 706e1ecf..77b23fad 100644 --- a/src/allmydata/test/test_storage.py +++ b/src/allmydata/test/test_storage.py @@ -20,6 +20,7 @@ from foolscap.logging.web import LogEvent from allmydata import interfaces from allmydata.util.assertutil import precondition +from allmydata.util.namespace import Namespace from allmydata.util import fileutil, hashutil, base32, time_format from allmydata.storage.server import StorageServer from allmydata.storage.backends.base import ContainerItem, ContainerListing @@ -1537,10 +1538,6 @@ class MSAzureStorageBackendTests(unittest.TestCase, CloudStorageBackendMixin): self.failUnless(done) -class Namespace(object): - pass - - class AdminContainerTests(unittest.TestCase, WorkdirMixin): def test_admin_create_container(self): # We'll use the mock cloud backend to test this. -- 2.45.2