]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Add Namespace utility class. (This is already used in the leasedb/cloud backend branch.)
authorDaira Hopwood <daira@jacaranda.org>
Fri, 17 Jul 2015 20:16:45 +0000 (21:16 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Fri, 17 Jul 2015 21:12:25 +0000 (22:12 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/test_iputil.py
src/allmydata/util/namespace.py [new file with mode: 0644]

index a8d4569d47ad73509c0d6498bf19ab7a4f6d9b9b..71a8752accf6549001fb64f8258887948bdc4672 100644 (file)
@@ -5,11 +5,9 @@ from twisted.trial import unittest
 
 from allmydata.util import iputil
 import allmydata.test.common_util as testutil
+from allmydata.util.namespace import Namespace
 
 
-class Namespace:
-    pass
-
 DOTTED_QUAD_RE=re.compile("^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$")
 
 MOCK_IPADDR_OUTPUT = """\
diff --git a/src/allmydata/util/namespace.py b/src/allmydata/util/namespace.py
new file mode 100644 (file)
index 0000000..c386b73
--- /dev/null
@@ -0,0 +1,3 @@
+
+class Namespace(object):
+    pass