summaryrefslogtreecommitdiff
path: root/repoze/bfg/functional.py
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/functional.py')
-rw-r--r--repoze/bfg/functional.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/repoze/bfg/functional.py b/repoze/bfg/functional.py
index cf196ebd8..351bcc4b6 100644
--- a/repoze/bfg/functional.py
+++ b/repoze/bfg/functional.py
@@ -94,10 +94,8 @@ def update_wrapper(wrapper,
function (defaults to functools.WRAPPER_UPDATES)
"""
for attr in assigned:
- try:
- setattr(wrapper, attr, getattr(wrapped, attr))
- except TypeError: # Python 2.3 doesn't allow assigning to __name__.
- pass
+ setattr(wrapper, attr, getattr(wrapped, attr))
+
for attr in updated:
getattr(wrapper, attr).update(getattr(wrapped, attr))
# Return the wrapper so this can be used as a decorator via curry()