summaryrefslogtreecommitdiff
path: root/lib/git/tree.py
diff options
context:
space:
mode:
authorSteve Frécinaux <code@istique.net>2008-09-06 00:34:18 +0200
committerSteve Frécinaux <code@istique.net>2008-09-06 00:34:18 +0200
commit2f6a6e35d003c243968cdb41b72fbbe609e56841 (patch)
treeb06845329bd529d6130e9c88f56fe5dd84de97cf /lib/git/tree.py
parent0425bc64384fe9a6a22edb7831d6e8c1756e2c7e (diff)
downloadgitpython-2f6a6e35d003c243968cdb41b72fbbe609e56841.tar.gz
Make Tree.content_from_string a static method.
It doesn't use an object's private contents, so let's go...
Diffstat (limited to 'lib/git/tree.py')
-rw-r--r--lib/git/tree.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/git/tree.py b/lib/git/tree.py
index 630fa1fc..59d3af1e 100644
--- a/lib/git/tree.py
+++ b/lib/git/tree.py
@@ -33,7 +33,8 @@ class Tree(LazyMixin):
if obj is not None:
self._contents[obj.name] = obj
- def content_from_string(self, repo, text):
+ @staticmethod
+ def content_from_string(repo, text):
"""
Parse a content item and create the appropriate object