##// END OF EJS Templates
autoreload: explicitly check for True when updating attributes. Fixes #11558
Sanyam Agarwal -
Show More
@@ -274,7 +274,9 b' def update_class(old, new):'
274 old_obj = getattr(old, key)
274 old_obj = getattr(old, key)
275 try:
275 try:
276 new_obj = getattr(new, key)
276 new_obj = getattr(new, key)
277 if old_obj == new_obj:
277 # explicitly checking that comparison returns True to handle
278 # cases where `==` doesn't return a boolean.
279 if (old_obj == new_obj) is True:
278 continue
280 continue
279 except AttributeError:
281 except AttributeError:
280 # obsolete attribute: remove it
282 # obsolete attribute: remove it
General Comments 0
You need to be logged in to leave comments. Login now