From b00f3689aa19938c10576580fbfc9243d9f3866c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steve=20Fr=C3=A9cinaux?= Date: Tue, 16 Sep 2008 08:08:47 +0200 Subject: Replace GitPython with git in repr() outputs. The imported module is called git (as in "import git"), so it's less confusing to do so than to call everything GitPython.something. --- lib/git/tree.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/git/tree.py') diff --git a/lib/git/tree.py b/lib/git/tree.py index dbd78ac4..d4587573 100644 --- a/lib/git/tree.py +++ b/lib/git/tree.py @@ -42,7 +42,7 @@ class Tree(LazyMixin): is the single line containing the items data in `git ls-tree` format Returns - ``GitPython.Blob`` or ``GitPython.Tree`` + ``git.Blob`` or ``git.Tree`` """ try: mode, typ, id, name = text.expandtabs(1).split(" ", 4) @@ -65,12 +65,12 @@ class Tree(LazyMixin): Examples:: >>> Repo('/path/to/python-git').tree/'lib' - + >>> Repo('/path/to/python-git').tree/'README.txt' - + Returns - ``GitPython.Blob`` or ``GitPython.Tree`` or ``None`` if not found + ``git.Blob`` or ``git.Tree`` or ``None`` if not found """ return self.get(file) @@ -79,7 +79,7 @@ class Tree(LazyMixin): os.path.basename(self.name) def __repr__(self): - return '' % self.id + return '' % self.id # Implement the basics of the dict protocol: # directories/trees can be seen as object dicts. -- cgit v1.2.1