summaryrefslogtreecommitdiff
path: root/lib/git/objects/tree.py
diff options
context:
space:
mode:
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 707cebaa..1bc35d95 100644
--- a/lib/git/objects/tree.py
+++ b/lib/git/objects/tree.py
@@ -50,7 +50,7 @@ class Tree(base.IndexObject):
"""
out = list()
for line in repo.git.ls_tree(treeish).splitlines():
- obj = cls.content_from_string(repo, line)
+ obj = cls._from_string(repo, line)
if obj is not None:
out.append(obj)
# END if object was handled
@@ -59,7 +59,7 @@ class Tree(base.IndexObject):
@classmethod
- def content_from_string(cls, repo, text):
+ def _from_string(cls, repo, text):
"""
Parse a content item and create the appropriate object