summaryrefslogtreecommitdiff
path: root/git/cmd.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/cmd.py
parent5d22d57010e064cfb9e0b6160e7bd3bb31dbfffc (diff)
downloadgitpython-768b9fffa58e82d6aa1f799bd5caebede9c9231b.tar.gz
Remove and replace compat.string_types
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 906ee585..cb226acb 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -21,7 +21,6 @@ from collections import OrderedDict
from textwrap import dedent
from git.compat import (
- string_types,
defenc,
force_bytes,
safe_decode,
@@ -1038,7 +1037,7 @@ class Git(LazyMixin):
if isinstance(ref, bytes):
# Assume 40 bytes hexsha - bin-to-ascii for some reason returns bytes, not text
refstr = ref.decode('ascii')
- elif not isinstance(ref, string_types):
+ elif not isinstance(ref, str):
refstr = str(ref) # could be ref-object
if not refstr.endswith("\n"):