eric6/ThirdParty/CharDet/chardet/compat.py

changeset 7974
f425b578ede7
parent 6942
2602857055c5
diff -r e836d196e888 -r f425b578ede7 eric6/ThirdParty/CharDet/chardet/compat.py
--- a/eric6/ThirdParty/CharDet/chardet/compat.py	Wed Jan 13 19:02:58 2021 +0100
+++ b/eric6/ThirdParty/CharDet/chardet/compat.py	Wed Jan 13 19:05:48 2021 +0100
@@ -25,10 +25,12 @@
 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

eric ide

mercurial