summaryrefslogtreecommitdiff
path: root/dogpile
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-10-29 17:02:08 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-10-29 17:02:08 -0400
commitb58baca45594a483224a2fd50bfd768de92fc4bf (patch)
tree246eaf2a7dc51f57e988ee6939ed18df29d8f64d /dogpile
parent6d7d8232d619878682a7fc115e2c48d27a3504b1 (diff)
downloaddogpile-core-b58baca45594a483224a2fd50bfd768de92fc4bf.tar.gz
nameregistry is still relevant, though we wont use it in the examples here.
Diffstat (limited to 'dogpile')
-rw-r--r--dogpile/core/legacy.py2
-rw-r--r--dogpile/core/nameregistry.py7
2 files changed, 2 insertions, 7 deletions
diff --git a/dogpile/core/legacy.py b/dogpile/core/legacy.py
index 06fbea5..dad4e16 100644
--- a/dogpile/core/legacy.py
+++ b/dogpile/core/legacy.py
@@ -1,3 +1,5 @@
+from __future__ import with_statement
+
from .util import threading
from .readwrite_lock import ReadWriteMutex
from .dogpile import Lock
diff --git a/dogpile/core/nameregistry.py b/dogpile/core/nameregistry.py
index b22fc34..6e8c547 100644
--- a/dogpile/core/nameregistry.py
+++ b/dogpile/core/nameregistry.py
@@ -6,13 +6,6 @@ class NameRegistry(object):
singleton for a certain identifier for as long as its
strongly referenced.
- .. note::
-
- The :class:`.NameRegistry` exists here to support
- certain usage patterns by the deprecated
- :class:`.Dogpile` object. It is still potentially
- useful in other cases, however.
-
e.g.::
class MyFoo(object):