From c80d727e374321573bb00e23876a67c77ff466e3 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 4 Jan 2015 13:48:29 +0100 Subject: Bumped version, updated changelog, reduced code smell There is more work to do though, as many imports are still incorrect. Also, there are still print statements --- git/objects/__init__.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'git/objects/__init__.py') diff --git a/git/objects/__init__.py b/git/objects/__init__.py index 0b40934c..1fe881f3 100644 --- a/git/objects/__init__.py +++ b/git/objects/__init__.py @@ -1,21 +1,22 @@ """ Import all submodules main classes into the package space """ +from __future__ import absolute_import import inspect -from base import * +from .base import * # Fix import dependency - add IndexObject to the util module, so that it can be # imported by the submodule.base -import submodule.util -submodule.util.IndexObject = IndexObject -submodule.util.Object = Object -from submodule.base import * -from submodule.root import * +from .submodule import util +util.IndexObject = IndexObject +util.Object = Object +from .submodule.base import * +from .submodule.root import * # must come after submodule was made available -from tag import * -from blob import * -from commit import * -from tree import * +from .tag import * +from .blob import * +from .commit import * +from .tree import * __all__ = [name for name, obj in locals().items() if not (name.startswith('_') or inspect.ismodule(obj))] -- cgit v1.2.1