summaryrefslogtreecommitdiff
path: root/lib/git/objects/tree.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-13 17:36:27 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-13 17:36:27 +0200
commit86fa577e135713e56b287169d69d976cde27ac97 (patch)
tree8c87b3d9651acdd1a79295ce0263317e70bf4e08 /lib/git/objects/tree.py
parenta58a60ac5f322eb4bfd38741469ff21b5a33d2d5 (diff)
downloadgitpython-86fa577e135713e56b287169d69d976cde27ac97.tar.gz
tree: renamed content_from_string to _from_string to make it private. Removed tests that were testing that method
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