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/cmd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git/cmd.py') 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"): -- cgit v1.2.1