summaryrefslogtreecommitdiff
path: root/repoze/bfg/functional.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-01-25 03:10:29 +0000
committerChris McDonough <chrism@agendaless.com>2009-01-25 03:10:29 +0000
commitde49699ef9eeccc6339f29d2e197d6f26d4904dc (patch)
treeaf036d35b81a44af233eb4358fe677b87eb8bfc1 /repoze/bfg/functional.py
parentcfd4e5e06d05dac3e8f1c03b63bc3cf37242334a (diff)
downloadpyramid-de49699ef9eeccc6339f29d2e197d6f26d4904dc.tar.gz
pyramid-de49699ef9eeccc6339f29d2e197d6f26d4904dc.tar.bz2
pyramid-de49699ef9eeccc6339f29d2e197d6f26d4904dc.zip
Test coverage.
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()