Bit by Python's pyc caching; it was pulling in an old .pyc whose .py no
longer existed.
"""
from twisted.python import log
from twisted.application import service
-import twisted_patches
+import patches
def uriCheck(elem, uri):
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)