Show More
@@ -274,7 +274,9 b' def update_class(old, new):' | |||
|
274 | 274 | old_obj = getattr(old, key) |
|
275 | 275 | try: |
|
276 | 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 | 280 | continue |
|
279 | 281 | except AttributeError: |
|
280 | 282 | # obsolete attribute: remove it |
General Comments 0
You need to be logged in to leave comments.
Login now