summaryrefslogtreecommitdiff
path: root/git/compat.py
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-07 04:59:29 -0600
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-02-08 10:55:50 +0800
commit438d3e6e8171189cfdc0a3507475f7a42d91bf02 (patch)
tree3cfa690c117e0a3472fb8829ef12be2d727202b6 /git/compat.py
parentd01f0726d5764fe2e2f0abddd9bd2e0748173e06 (diff)
downloadgitpython-438d3e6e8171189cfdc0a3507475f7a42d91bf02.tar.gz
Remove and replace compat.FileType
Diffstat (limited to 'git/compat.py')
-rw-r--r--git/compat.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/git/compat.py b/git/compat.py
index 86724417..1ee4e2ee 100644
--- a/git/compat.py
+++ b/git/compat.py
@@ -33,9 +33,6 @@ is_darwin = (os.name == 'darwin')
defenc = sys.getfilesystemencoding()
if PY3:
- import io
- FileType = io.IOBase
-
def byte_ord(b):
return b
@@ -49,9 +46,6 @@ if PY3:
unicode = str
binary_type = bytes
else:
- FileType = file # @UndefinedVariable on PY3
- # usually, this is just ascii, which might not enough for our encoding needs
- # Unless it's set specifically, we override it to be utf-8
if defenc == 'ascii':
defenc = 'utf-8'
byte_ord = ord