summaryrefslogtreecommitdiff
path: root/git/exc.py
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-07 06:20:23 -0600
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-02-08 10:55:50 +0800
commit768b9fffa58e82d6aa1f799bd5caebede9c9231b (patch)
tree0f995bb2702601f5edc3db05c85169f12e547ee8 /git/exc.py
parent5d22d57010e064cfb9e0b6160e7bd3bb31dbfffc (diff)
downloadgitpython-768b9fffa58e82d6aa1f799bd5caebede9c9231b.tar.gz
Remove and replace compat.string_types
Diffstat (limited to 'git/exc.py')
-rw-r--r--git/exc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/exc.py b/git/exc.py
index 070bf9b7..f75ec5c9 100644
--- a/git/exc.py
+++ b/git/exc.py
@@ -6,7 +6,7 @@
""" Module containing all exceptions thrown throughout the git package, """
from gitdb.exc import * # NOQA @UnusedWildImport skipcq: PYL-W0401, PYL-W0614
-from git.compat import safe_decode, string_types
+from git.compat import safe_decode
class GitError(Exception):
@@ -50,7 +50,7 @@ class CommandError(GitError):
status = u'exit code(%s)' % int(status)
except (ValueError, TypeError):
s = safe_decode(str(status))
- status = u"'%s'" % s if isinstance(status, string_types) else s
+ status = u"'%s'" % s if isinstance(status, str) else s
self._cmd = safe_decode(command[0])
self._cmdline = u' '.join(safe_decode(i) for i in command)