mercurial/util.py
changeset 36832 6bdea0efdab5
parent 36793 eca1051e6c22
child 36835 5bc7ff103081
equal deleted inserted replaced
36831:82af07e1ae16 36832:6bdea0efdab5
   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):