summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/editorconfig/compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'venv/lib/python3.11/site-packages/editorconfig/compat.py')
-rw-r--r--venv/lib/python3.11/site-packages/editorconfig/compat.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/venv/lib/python3.11/site-packages/editorconfig/compat.py b/venv/lib/python3.11/site-packages/editorconfig/compat.py
deleted file mode 100644
index 4b9f8ca..0000000
--- a/venv/lib/python3.11/site-packages/editorconfig/compat.py
+++ /dev/null
@@ -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