diff options
author | Harmon <Harmon758@gmail.com> | 2020-02-07 04:53:55 -0600 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-02-08 10:55:50 +0800 |
commit | d01f0726d5764fe2e2f0abddd9bd2e0748173e06 (patch) | |
tree | 488287e2f384e09fd288a9b640b04b48319c0ab0 /git/compat.py | |
parent | f2ce56ffd016e2e6d1258ce5436787cae48a0812 (diff) | |
download | gitpython-d01f0726d5764fe2e2f0abddd9bd2e0748173e06.tar.gz |
Remove unnecessary check for sys.getfilesystemencoding
Diffstat (limited to 'git/compat.py')
-rw-r--r-- | git/compat.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/git/compat.py b/git/compat.py index e88ca9b5..86724417 100644 --- a/git/compat.py +++ b/git/compat.py @@ -30,10 +30,7 @@ PY3 = sys.version_info[0] >= 3 is_win = (os.name == 'nt') is_posix = (os.name == 'posix') is_darwin = (os.name == 'darwin') -if hasattr(sys, 'getfilesystemencoding'): - defenc = sys.getfilesystemencoding() -if defenc is None: - defenc = sys.getdefaultencoding() +defenc = sys.getfilesystemencoding() if PY3: import io |