Show More
@@ -138,10 +138,7 b' def wrapname(name, wrapper):' | |||
|
138 | 138 | func = getattr(module, name) |
|
139 | 139 | def f(*args, **kwds): |
|
140 | 140 | return wrapper(func, args, kwds) |
|
141 | try: | |
|
142 | f.__name__ = func.__name__ # fails with Python 2.3 | |
|
143 | except Exception: | |
|
144 | pass | |
|
141 | f.__name__ = func.__name__ | |
|
145 | 142 | setattr(module, name, f) |
|
146 | 143 | |
|
147 | 144 | # List of functions to be wrapped. |
General Comments 0
You need to be logged in to leave comments.
Login now