##// END OF EJS Templates
Fix dict pretty printer in PyPy #9776...
Danilo J. S. Bellini -
Show More
@@ -753,7 +753,10 b' _type_pprinters = {'
753 753 }
754 754
755 755 try:
756 _type_pprinters[types.DictProxyType] = _dict_pprinter_factory('<dictproxy {', '}>')
756 # In PyPy, types.DictProxyType is dict, setting the dictproxy printer
757 # using dict.setdefault avoids overwritting the dict printer
758 _type_pprinters.setdefault(types.DictProxyType,
759 _dict_pprinter_factory('<dictproxy {', '}>'))
757 760 _type_pprinters[types.ClassType] = _type_pprint
758 761 _type_pprinters[types.SliceType] = _repr_pprint
759 762 except AttributeError: # Python 3
General Comments 0
You need to be logged in to leave comments. Login now