diff options
author | Harmon <Harmon758@gmail.com> | 2020-02-07 06:20:23 -0600 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-02-08 10:55:50 +0800 |
commit | 768b9fffa58e82d6aa1f799bd5caebede9c9231b (patch) | |
tree | 0f995bb2702601f5edc3db05c85169f12e547ee8 /git/objects/tree.py | |
parent | 5d22d57010e064cfb9e0b6160e7bd3bb31dbfffc (diff) | |
download | gitpython-768b9fffa58e82d6aa1f799bd5caebede9c9231b.tar.gz |
Remove and replace compat.string_types
Diffstat (limited to 'git/objects/tree.py')
-rw-r--r-- | git/objects/tree.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git/objects/tree.py b/git/objects/tree.py index 90996bfa..469e5395 100644 --- a/git/objects/tree.py +++ b/git/objects/tree.py @@ -11,7 +11,6 @@ from . import util from .base import IndexObject from .blob import Blob from .submodule.base import Submodule -from git.compat import string_types from .fun import ( tree_entries_from_data, @@ -290,7 +289,7 @@ class Tree(IndexObject, diff.Diffable, util.Traversable, util.Serializable): info = self._cache[item] return self._map_id_to_type[info[1] >> 12](self.repo, info[0], info[1], join_path(self.path, info[2])) - if isinstance(item, string_types): + if isinstance(item, str): # compatibility return self.join(item) # END index is basestring |