mercurial/extensions.py
changeset 43503 313e3a279828
parent 43238 101ae8bbfa02
child 43506 9f70512ae2cf
equal deleted inserted replaced
43502:c093cc6e6c99 43503:313e3a279828
   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