From 2ba29e10a74c28c2f94e795b6942a79402a90e5c Mon Sep 17 00:00:00 2001 From: ianb Date: Wed, 14 Dec 2005 01:01:02 +0000 Subject: Python 2.3 doesn't like that reassignment --- paste/wsgilib.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'paste/wsgilib.py') 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 -- cgit v1.2.1