# HG changeset patch # User Yuya Nishihara # Date 1542894022 -32400 # Node ID 475921a3028c419ab50e17f2b8855e01cb1fa35e # Parent 0d8425311f2f3f30491f4a4604498ea643d7c25a py3: cast attribute name to sysstr in clearcachedproperty() diff -r 0d8425311f2f -r 475921a3028c mercurial/util.py --- a/mercurial/util.py Wed Nov 21 19:12:12 2018 +0300 +++ b/mercurial/util.py Thu Nov 22 22:40:22 2018 +0900 @@ -1535,6 +1535,7 @@ def clearcachedproperty(obj, prop): '''clear a cached property value, if one has been set''' + prop = pycompat.sysstr(prop) if prop in obj.__dict__: del obj.__dict__[prop]