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/repo/__init__.py | 4 ++-- git/repo/base.py | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'git/repo') 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 -- cgit v1.2.3