From 3ae6ceb6a8de2f2eb45b0243231d5448b4c83797 Mon Sep 17 00:00:00 2001
From: Daira Hopwood <daira@jacaranda.org>
Date: Fri, 17 Jul 2015 21:16:45 +0100
Subject: [PATCH] Add Namespace utility class. (This is already used in the
 leasedb/cloud backend branch.)

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
---
 src/allmydata/test/test_iputil.py | 4 +---
 src/allmydata/util/namespace.py   | 3 +++
 2 files changed, 4 insertions(+), 3 deletions(-)
 create mode 100644 src/allmydata/util/namespace.py

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
-- 
2.45.2