From 6aa78cd3b969ede76a1a6e660962e898421d4ed8 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Feb 2020 05:56:27 -0600 Subject: Remove checks for Python 2 and/or 3 --- git/util.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'git/util.py') diff --git a/git/util.py b/git/util.py index 974657e6..4402e05f 100644 --- a/git/util.py +++ b/git/util.py @@ -33,8 +33,7 @@ import os.path as osp from .compat import ( MAXSIZE, - defenc, - PY3 + defenc ) from .exc import InvalidGitRepositoryError @@ -592,9 +591,6 @@ class Actor(object): ('email', env_email, cls.conf_email, default_email)): try: val = os.environ[evar] - if not PY3: - val = val.decode(defenc) - # end assure we don't get 'invalid strings' setattr(actor, attr, val) except KeyError: if config_reader is not None: -- cgit v1.2.3