##// END OF EJS Templates
py3: cast attribute name to sysstr in clearcachedproperty()
Yuya Nishihara -
r40725:475921a3 default
parent child Browse files
Show More
@@ -1535,6 +1535,7 b' class propertycache(object):'
1535
1535
1536 def clearcachedproperty(obj, prop):
1536 def clearcachedproperty(obj, prop):
1537 '''clear a cached property value, if one has been set'''
1537 '''clear a cached property value, if one has been set'''
1538 prop = pycompat.sysstr(prop)
1538 if prop in obj.__dict__:
1539 if prop in obj.__dict__:
1539 del obj.__dict__[prop]
1540 del obj.__dict__[prop]
1540
1541
General Comments 0
You need to be logged in to leave comments. Login now