From b02662d4e870a34d2c6d97d4f702fcc1311e5177 Mon Sep 17 00:00:00 2001 From: Kostis Anagnostopoulos Date: Sat, 15 Oct 2016 13:42:33 +0200 Subject: src: reduce needless deps to `gitdb.util` --- git/objects/base.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'git/objects/base.py') 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): -- cgit v1.2.1