From 768b9fffa58e82d6aa1f799bd5caebede9c9231b Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Feb 2020 06:20:23 -0600 Subject: Remove and replace compat.string_types --- git/exc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/exc.py') 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) -- cgit v1.2.1