equal
deleted
inserted
replaced
589 |
589 |
590 currcls.__dict__[propname].func = wrap |
590 currcls.__dict__[propname].func = wrap |
591 break |
591 break |
592 |
592 |
593 if currcls is object: |
593 if currcls is object: |
594 raise AttributeError( |
594 raise AttributeError("type '%s' has no property '%s'" % (cls, propname)) |
595 r"type '%s' has no property '%s'" % (cls, propname) |
|
596 ) |
|
597 |
595 |
598 |
596 |
599 class wrappedfunction(object): |
597 class wrappedfunction(object): |
600 '''context manager for temporarily wrapping a function''' |
598 '''context manager for temporarily wrapping a function''' |
601 |
599 |