diff options
Diffstat (limited to 'debug_toolbar')
| -rw-r--r-- | debug_toolbar/middleware.py | 4 | ||||
| -rw-r--r-- | debug_toolbar/utils/tracking/__init__.py | 19 | 
2 files changed, 0 insertions, 23 deletions
| diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py index 80e9305..daea751 100644 --- a/debug_toolbar/middleware.py +++ b/debug_toolbar/middleware.py @@ -54,10 +54,6 @@ class DebugToolbarMiddleware(object):      """      debug_toolbars = {} -    @classmethod -    def get_current(cls): -        return cls.debug_toolbars.get(threading.current_thread().ident) -      def __init__(self):          self._urlconfs = {} diff --git a/debug_toolbar/utils/tracking/__init__.py b/debug_toolbar/utils/tracking/__init__.py index a8a0421..e69de29 100644 --- a/debug_toolbar/utils/tracking/__init__.py +++ b/debug_toolbar/utils/tracking/__init__.py @@ -1,19 +0,0 @@ -from __future__ import unicode_literals - - -def replace_method(klass, method_name): -    original = getattr(klass, method_name) - -    def inner(callback): -        def wrapped(*args, **kwargs): -            return callback(original, *args, **kwargs) - -        actual = getattr(original, '__wrapped__', original) -        wrapped.__wrapped__ = actual -        wrapped.__doc__ = getattr(actual, '__doc__', None) -        wrapped.__name__ = actual.__name__ - -        setattr(klass, method_name, wrapped) -        return wrapped - -    return inner | 
