eric6/ThirdParty/EditorConfig/editorconfig/compat.py

changeset 8258
82b608e352ec
parent 8257
28146736bbfc
child 8259
2bbec88047dd
diff -r 28146736bbfc -r 82b608e352ec eric6/ThirdParty/EditorConfig/editorconfig/compat.py
--- a/eric6/ThirdParty/EditorConfig/editorconfig/compat.py	Tue Apr 20 19:47:39 2021 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-"""EditorConfig Python2/Python3 compatibility utilities"""
-import sys
-
-
-__all__ = ['force_unicode', 'u']
-
-
-if sys.version_info[0] == 2:
-    text_type = unicode
-else:
-    text_type = str
-
-
-def force_unicode(string):
-    if not isinstance(string, text_type):
-        string = text_type(string, encoding='utf-8')
-    return string
-
-
-if sys.version_info[0] == 2:
-    import codecs
-    u = lambda s: codecs.unicode_escape_decode(s)[0]
-else:
-    u = lambda s: s

eric ide

mercurial