diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-04 13:48:29 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-04 13:48:29 +0100 |
commit | c80d727e374321573bb00e23876a67c77ff466e3 (patch) | |
tree | 7590d6ae544eac56e83639d27e1f9013b38d8a4b /git/repo | |
parent | 965a08c3f9f2fbd62691d533425c699c943cb865 (diff) | |
download | gitpython-c80d727e374321573bb00e23876a67c77ff466e3.tar.gz |
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
Diffstat (limited to 'git/repo')
-rw-r--r-- | git/repo/__init__.py | 4 | ||||
-rw-r--r-- | git/repo/base.py | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/git/repo/__init__.py b/git/repo/__init__.py index 09051bd4..3ae97e66 100644 --- a/git/repo/__init__.py +++ b/git/repo/__init__.py @@ -1,3 +1,3 @@ """Initialize the Repo package""" - -from base import * +from __future__ import absolute_import +from .base import * diff --git a/git/repo/base.py b/git/repo/base.py index 174f29aa..d1af26e2 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -164,9 +164,6 @@ class Repo(object): def __hash__(self): return hash(self.git_dir) - def __repr__(self): - return "%s(%r)" % (type(self).__name__, self.git_dir) - # Description property def _get_description(self): filename = join(self.git_dir, 'description') @@ -666,7 +663,7 @@ class Repo(object): # git command automatically chdir into the directory git = Git(path) - output = git.init(**kwargs) + git.init(**kwargs) return Repo(path) @classmethod |