summaryrefslogtreecommitdiff
path: root/paste/wsgilib.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-12-14 01:01:02 +0000
committerianb <devnull@localhost>2005-12-14 01:01:02 +0000
commit2ba29e10a74c28c2f94e795b6942a79402a90e5c (patch)
tree0f8d39e53407e63e2aee9048f5099e4b9893f54e /paste/wsgilib.py
parentf390c28caeb9e245cd4fc4db0466534f42f18717 (diff)
downloadpaste-2ba29e10a74c28c2f94e795b6942a79402a90e5c.tar.gz
Python 2.3 doesn't like that reassignment
Diffstat (limited to 'paste/wsgilib.py')
-rw-r--r--paste/wsgilib.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/paste/wsgilib.py b/paste/wsgilib.py
index 7bb9904..8d9dc9d 100644
--- a/paste/wsgilib.py
+++ b/paste/wsgilib.py
@@ -527,7 +527,10 @@ def _warn_deprecated(new_func):
% (new_name, new_path),
DeprecationWarning, 2)
return new_func(*args, **kw)
- replacement.func_name = new_func.func_name
+ try:
+ replacement.func_name = new_func.func_name
+ except:
+ pass
return replacement
# Put warnings wrapper in place for all public functions that