equal
deleted
inserted
replaced
382 def wrapfilecache(cls, propname, wrapper): |
382 def wrapfilecache(cls, propname, wrapper): |
383 """Wraps a filecache property. |
383 """Wraps a filecache property. |
384 |
384 |
385 These can't be wrapped using the normal wrapfunction. |
385 These can't be wrapped using the normal wrapfunction. |
386 """ |
386 """ |
|
387 propname = pycompat.sysstr(propname) |
387 assert callable(wrapper) |
388 assert callable(wrapper) |
388 for currcls in cls.__mro__: |
389 for currcls in cls.__mro__: |
389 if propname in currcls.__dict__: |
390 if propname in currcls.__dict__: |
390 origfn = currcls.__dict__[propname].func |
391 origfn = currcls.__dict__[propname].func |
391 assert callable(origfn) |
392 assert callable(origfn) |