equal
deleted
inserted
replaced
540 # We only observe some methods. |
540 # We only observe some methods. |
541 if name in ours: |
541 if name in ours: |
542 return object.__getattribute__(self, name) |
542 return object.__getattribute__(self, name) |
543 |
543 |
544 return getattr(object.__getattribute__(self, r'_orig'), name) |
544 return getattr(object.__getattribute__(self, r'_orig'), name) |
|
545 |
|
546 def __nonzero__(self): |
|
547 return bool(object.__getattribute__(self, r'_orig')) |
|
548 |
|
549 __bool__ = __nonzero__ |
545 |
550 |
546 def __delattr__(self, name): |
551 def __delattr__(self, name): |
547 return delattr(object.__getattribute__(self, r'_orig'), name) |
552 return delattr(object.__getattribute__(self, r'_orig'), name) |
548 |
553 |
549 def __setattr__(self, name, value): |
554 def __setattr__(self, name, value): |