From: Daira Hopwood Date: Fri, 17 Jul 2015 20:16:45 +0000 (+0100) Subject: Add Namespace utility class. (This is already used in the leasedb/cloud backend branch.) X-Git-Tag: allmydata-tahoe-1.10.2b1~12 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/file/reliability?a=commitdiff_plain;h=3ae6ceb6a8de2f2eb45b0243231d5448b4c83797;p=tahoe-lafs%2Ftahoe-lafs.git Add Namespace utility class. (This is already used in the leasedb/cloud backend branch.) Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/test/test_iputil.py b/src/allmydata/test/test_iputil.py index a8d4569d..71a8752a 100644 --- a/src/allmydata/test/test_iputil.py +++ b/src/allmydata/test/test_iputil.py @@ -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 index 00000000..c386b737 --- /dev/null +++ b/src/allmydata/util/namespace.py @@ -0,0 +1,3 @@ + +class Namespace(object): + pass