1
0
forked from VimPlug/jedi

Remove no_unicode_pprint

This commit is contained in:
Dave Halter
2020-07-02 00:54:17 +02:00
parent aab9fd2fbe
commit 1df98c5bd6
3 changed files with 4 additions and 18 deletions

View File

@@ -325,18 +325,6 @@ except NameError:
pass
def no_unicode_pprint(dct):
"""
Python 2/3 dict __repr__ may be different, because of unicode differens
(with or without a `u` prefix). Normally in doctests we could use `pprint`
to sort dicts and check for equality, but here we have to write a separate
function to do that.
"""
import pprint
s = pprint.pformat(dct)
print(re.sub("u'", "'", s))
def utf8_repr(func):
"""
``__repr__`` methods in Python 2 don't allow unicode objects to be