Fixup importing punjab.patches.
authorGlenn Maynard <glenn@zewt.org>
Thu, 28 Apr 2011 16:25:58 +0000 (12:25 -0400)
committerGlenn Maynard <glenn@zewt.org>
Thu, 28 Apr 2011 16:25:58 +0000 (12:25 -0400)
Bit by Python's pyc caching; it was pulling in an old .pyc whose .py no
longer existed.

punjab/__init__.py
punjab/patches.py

index d932699..0ce48f9 100644 (file)
@@ -4,7 +4,7 @@ Punjab - multiple http interfaces to jabber.
 """
 from twisted.python import log
 from twisted.application import service
-import twisted_patches
+import patches
 
 
 def uriCheck(elem, uri):
index 73f71a3..94520d3 100644 (file)
@@ -5,7 +5,7 @@ import functools
 def patch(cls, attr):
     """Patch the function named attr in the object cls with the decorated function."""
     orig_func = getattr(cls, attr)
-    @wraps(orig_func)
+    @functools.wraps(orig_func)
     def decorator(func):
         def wrapped_func(*args, **kwargs):
             return func(orig_func, *args, **kwargs)