diff options
| author | Steve Frécinaux <code@istique.net> | 2008-09-06 00:34:18 +0200 |
|---|---|---|
| committer | Steve Frécinaux <code@istique.net> | 2008-09-06 00:34:18 +0200 |
| commit | 2f6a6e35d003c243968cdb41b72fbbe609e56841 (patch) | |
| tree | b06845329bd529d6130e9c88f56fe5dd84de97cf /lib/git | |
| parent | 0425bc64384fe9a6a22edb7831d6e8c1756e2c7e (diff) | |
| download | gitpython-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')
| -rw-r--r-- | lib/git/tree.py | 3 |
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 |
