summaryrefslogtreecommitdiff
path: root/paste/registry.py
diff options
context:
space:
mode:
authorpjenvey <devnull@localhost>2007-02-15 08:15:04 +0000
committerpjenvey <devnull@localhost>2007-02-15 08:15:04 +0000
commit60d278b0552b8fb6ccdc0f4d79d1b7a0936e7545 (patch)
tree9efe70f43410a851024135ece87a8f9c29f491de /paste/registry.py
parent23697accd4df29e348beab948268bb9804004110 (diff)
downloadpaste-60d278b0552b8fb6ccdc0f4d79d1b7a0936e7545.tar.gz
removed deprecated current_obj/push_object/pop_boject methods
Diffstat (limited to 'paste/registry.py')
-rw-r--r--paste/registry.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/paste/registry.py b/paste/registry.py
index 9a4f5a0..d8809ca 100644
--- a/paste/registry.py
+++ b/paste/registry.py
@@ -1,7 +1,6 @@
# (c) 2005 Ben Bangert
# This module is part of the Python Paste Project and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
-
"""Registry for handling request-local module globals sanely
Dealing with module globals in a thread-safe way is good if your
@@ -91,7 +90,6 @@ quick way to work around it is documented.
"""
import sys
-import warnings
import paste.util.threadinglocal as threadinglocal
__all__ = ['StackedObjectProxy', 'RegistryManager', 'StackedObjectRestorer',
@@ -161,14 +159,6 @@ class StackedObjectProxy(object):
def __nonzero__(self):
return bool(self._current_obj())
- def current_obj(self):
- """
- Deprecated (Aug 15 2006); moved to _current_obj.
- """
- warnings.warn('StackedObjectProxy.current_obj has been moved to '
- 'StackedObjectProxy._current_obj', DeprecationWarning, 2)
- return self._current_obj()
-
def _current_obj(self):
"""Returns the current active object being proxied to
@@ -188,14 +178,6 @@ class StackedObjectProxy(object):
'No object (name: %s) has been registered for this '
'thread' % self.____name__)
- def push_object(self, obj):
- """
- Deprecated (Aug 15 2006); moved to _push_object.
- """
- warnings.warn('StackedObjectProxy.push_object has been moved to '
- 'StackedObjectProxy._push_object', DeprecationWarning, 2)
- self._push_object(obj)
-
def _push_object(self, obj):
"""Make ``obj`` the active object for this thread-local.
@@ -216,14 +198,6 @@ class StackedObjectProxy(object):
self.____local__.objects = []
self.____local__.objects.append(obj)
- def pop_object(self, obj=None):
- """
- Deprecated (Aug 15 2006); moved to _pop_object.
- """
- warnings.warn('StackedObjectProxy.pop_object has been moved to '
- 'StackedObjectProxy._pop_object', DeprecationWarning, 2)
- self._pop_object(obj)
-
def _pop_object(self, obj=None):
"""Remove a thread-local object.