1. dingjf
  2. CherryPy


CherryPy / __init__.py

Diff from to

File __init__.py

  • Ignore whitespace
             setattr(newfunc, key, getattr(func, key))
     return newfunc
-def decorateAll(obj, decorator):
+def decorate_all(obj, decorator):
     Recursively decorate all exposed functions of obj and all of its children,
     grandchildren, etc. If you used to use aspects, you might want to look
         value = getattr(obj, key)
         if callable(value) and getattr(value, "exposed", False):
             setattr(obj, key, decorate(value, decorator))
-        decorateAll(value, decorator)
+        decorate_all(value, decorator)
 class ExposeItems: