def no_unicode_pprint(dct):
 import pprint
 s = pprint.pformat(dct)
 print re.sub("u'", "'", s)

def no_unicode_pprint ( dct ) : import pprint s = pprint . pformat ( dct ) print re . sub ( "u'" , "'" , s )
python 2/3 dict __repr__ may be different .