diff options
author | Harmon <Harmon758@gmail.com> | 2020-02-07 05:56:27 -0600 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-02-08 10:55:50 +0800 |
commit | 6aa78cd3b969ede76a1a6e660962e898421d4ed8 (patch) | |
tree | 5eb2363fb7d727770da0b00c6a3fc081470cbd06 /git/index/fun.py | |
parent | e633cc009fe3dc8d29503b0d14532dc5e8c44cce (diff) | |
download | gitpython-6aa78cd3b969ede76a1a6e660962e898421d4ed8.tar.gz |
Remove checks for Python 2 and/or 3
Diffstat (limited to 'git/index/fun.py')
-rw-r--r-- | git/index/fun.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git/index/fun.py b/git/index/fun.py index 5906a358..5c28a38c 100644 --- a/git/index/fun.py +++ b/git/index/fun.py @@ -15,7 +15,6 @@ import subprocess from git.cmd import PROC_CREATIONFLAGS, handle_process_output from git.compat import ( - PY3, defenc, force_text, force_bytes, @@ -73,7 +72,7 @@ def run_commit_hook(name, index, *args): return env = os.environ.copy() - env['GIT_INDEX_FILE'] = safe_decode(index.path) if PY3 else safe_encode(index.path) + env['GIT_INDEX_FILE'] = safe_decode(index.path) env['GIT_EDITOR'] = ':' try: cmd = subprocess.Popen([hp] + list(args), |