summaryrefslogtreecommitdiff
path: root/git/objects/base.py
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-10-15 13:42:33 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-10-16 02:46:32 +0200
commitb02662d4e870a34d2c6d97d4f702fcc1311e5177 (patch)
tree6f2bc1d942f979b3bb379d833700fe33f955415d /git/objects/base.py
parent0210e394e0776d0b7097bf666bebd690ed0c0e4f (diff)
downloadgitpython-b02662d4e870a34d2c6d97d4f702fcc1311e5177.tar.gz
src: reduce needless deps to `gitdb.util`
Diffstat (limited to 'git/objects/base.py')
-rw-r--r--git/objects/base.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/git/objects/base.py b/git/objects/base.py
index 0b849960..d6080779 100644
--- a/git/objects/base.py
+++ b/git/objects/base.py
@@ -3,14 +3,13 @@
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-from .util import get_object_type_by_name
-from git.util import LazyMixin, join_path_native, stream_copy
-from gitdb.util import (
- bin_to_hex,
- basename
-)
+from git.util import LazyMixin, join_path_native, stream_copy, bin_to_hex
import gitdb.typ as dbtyp
+import os.path as osp
+
+from .util import get_object_type_by_name
+
_assertion_msg_format = "Created object %r whose python type %r disagrees with the acutal git object type %r"
@@ -170,7 +169,7 @@ class IndexObject(Object):
@property
def name(self):
""":return: Name portion of the path, effectively being the basename"""
- return basename(self.path)
+ return osp.basename(self.path)
@property
def abspath(self):