Ticket #7343: django-update_wrapper-attribute_error.diff
File django-update_wrapper-attribute_error.diff, 624 bytes (added by , 16 years ago) |
---|
-
django/utils/functional.py
95 95 except TypeError: # Python 2.3 doesn't allow assigning to __name__. 96 96 pass 97 97 for attr in updated: 98 getattr(wrapper, attr).update(getattr(wrapped, attr)) 98 try: 99 getattr(wrapper, attr).update(getattr(wrapped, attr)) 100 except AttributeError: 101 pass 99 102 # Return the wrapper so this can be used as a decorator via curry() 100 103 return wrapper 101 104