From 51cd68a4315a740602b13fefe70aefca6d09f2ec 2020-02-01 00:46:51 From: Terry Davis <16829776+terrdavis@users.noreply.github.com> Date: 2020-02-01 00:46:51 Subject: [PATCH] Remove python 2 only long and unicode type references. --- diff --git a/IPython/lib/pretty.py b/IPython/lib/pretty.py index cc68781..3115d3f 100644 --- a/IPython/lib/pretty.py +++ b/IPython/lib/pretty.py @@ -764,12 +764,8 @@ except AttributeError: # Python 3 _dict_pprinter_factory('mappingproxy({', '})') _type_pprinters[slice] = _repr_pprint -try: - _type_pprinters[long] = _repr_pprint - _type_pprinters[unicode] = _repr_pprint -except NameError: - _type_pprinters[range] = _repr_pprint - _type_pprinters[bytes] = _repr_pprint +_type_pprinters[range] = _repr_pprint +_type_pprinters[bytes] = _repr_pprint #: printers for types specified by name _deferred_type_pprinters = {