Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51cd68a

Browse files
committed
Remove python 2 only long and unicode type references.
1 parent 5618e59 commit 51cd68a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

IPython/lib/pretty.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -764,12 +764,8 @@ def _exception_pprint(obj, p, cycle):
764764
_dict_pprinter_factory('mappingproxy({', '})')
765765
_type_pprinters[slice] = _repr_pprint
766766

767-
try:
768-
_type_pprinters[long] = _repr_pprint
769-
_type_pprinters[unicode] = _repr_pprint
770-
except NameError:
771-
_type_pprinters[range] = _repr_pprint
772-
_type_pprinters[bytes] = _repr_pprint
767+
_type_pprinters[range] = _repr_pprint
768+
_type_pprinters[bytes] = _repr_pprint
773769

774770
#: printers for types specified by name
775771
_deferred_type_pprinters = {

0 commit comments

Comments
 (0)