Show More
@@ -807,7 +807,7 b' def _ordereddict_pprint(obj, p, cycle):' | |||||
807 | if cycle: |
|
807 | if cycle: | |
808 | p.text('...') |
|
808 | p.text('...') | |
809 | elif len(obj): |
|
809 | elif len(obj): | |
810 |
|
|
810 | p.pretty(list(obj.items())) | |
811 |
|
811 | |||
812 | def _deque_pprint(obj, p, cycle): |
|
812 | def _deque_pprint(obj, p, cycle): | |
813 | name = 'deque' |
|
813 | name = 'deque' | |
@@ -824,7 +824,7 b' def _counter_pprint(obj, p, cycle):' | |||||
824 | if cycle: |
|
824 | if cycle: | |
825 | p.text('...') |
|
825 | p.text('...') | |
826 | elif len(obj): |
|
826 | elif len(obj): | |
827 |
|
|
827 | p.pretty(dict(obj)) | |
828 |
|
828 | |||
829 | for_type_by_name('collections', 'defaultdict', _defaultdict_pprint) |
|
829 | for_type_by_name('collections', 'defaultdict', _defaultdict_pprint) | |
830 | for_type_by_name('collections', 'OrderedDict', _ordereddict_pprint) |
|
830 | for_type_by_name('collections', 'OrderedDict', _ordereddict_pprint) |
General Comments 0
You need to be logged in to leave comments.
Login now