Update of chardet to 4.0.0

This commit is contained in:
Miroslav Štampar 2026-06-10 21:03:58 +02:00
parent af0e46316a
commit d47aacbfba
17 changed files with 26950 additions and 1636 deletions

View file

@ -25,10 +25,12 @@ import sys
if sys.version_info < (3, 0):
PY2 = True
PY3 = False
base_str = (str, unicode)
string_types = (str, unicode)
text_type = unicode
iteritems = dict.iteritems
else:
PY2 = False
PY3 = True
base_str = (bytes, str)
string_types = (bytes, str)
text_type = str
iteritems = dict.items