Show More
@@ -414,7 +414,7 b' class RepresentationPrinter(PrettyPrinter):' | |||
|
414 | 414 | # Note: we need to test getattr(cls, '__repr__') |
|
415 | 415 | # instead of cls.__dict__['__repr__'] |
|
416 | 416 | # in order to work with descriptors like partialmethod, |
|
417 | and callable(getattr(cls, "__repr__", None)) | |
|
417 | and callable(_safe_getattr(cls, "__repr__", None)) | |
|
418 | 418 | ): |
|
419 | 419 | return _repr_pprint(obj, self, cycle) |
|
420 | 420 |
General Comments 0
You need to be logged in to leave comments.
Login now