summaryrefslogtreecommitdiff
path: root/lib/git/objects/tree.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-12 14:56:47 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-12 14:56:47 +0200
commit637eadce54ca8bbe536bcf7c570c025e28e47129 (patch)
treec8691e6358e2b626b42c19bb6bb893e83464b40c /lib/git/objects/tree.py
parentf2834177c0fdf6b1af659e460fd3348f468b8ab0 (diff)
downloadgitpython-637eadce54ca8bbe536bcf7c570c025e28e47129.tar.gz
renamed from_string and list_from_string to _from_string and _list_from_string to indicate their new status as private method, adjusted all callers respectively
Diffstat (limited to 'lib/git/objects/tree.py')
-rw-r--r--lib/git/objects/tree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/objects/tree.py b/lib/git/objects/tree.py
index 597668ae..273384a3 100644
--- a/lib/git/objects/tree.py
+++ b/lib/git/objects/tree.py
@@ -21,14 +21,14 @@ class Tree(base.IndexObject):
# Read the tree contents.
self._contents = {}
for line in self.repo.git.ls_tree(self.id).splitlines():
- obj = self.content_from_string(self.repo, line)
+ obj = self.content__from_string(self.repo, line)
if obj is not None:
self._contents[obj.path] = obj
else:
super(Tree, self)._set_cache_(attr)
@staticmethod
- def content_from_string(repo, text):
+ def content__from_string(repo, text):
"""
Parse a content item and create the appropriate object