From 438d3e6e8171189cfdc0a3507475f7a42d91bf02 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Feb 2020 04:59:29 -0600 Subject: Remove and replace compat.FileType --- git/compat.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'git/compat.py') 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 -- cgit v1.2.1