Mercurial > hg
diff mercurial/util.py @ 40689:475921a3028c
py3: cast attribute name to sysstr in clearcachedproperty()
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 22 Nov 2018 22:40:22 +0900 |
parents | 3c89227788a2 |
children | 0c638ff69f5c |
line wrap: on
line diff
--- 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]