From 2f6a6e35d003c243968cdb41b72fbbe609e56841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steve=20Fr=C3=A9cinaux?= Date: Sat, 6 Sep 2008 00:34:18 +0200 Subject: Make Tree.content_from_string a static method. It doesn't use an object's private contents, so let's go... --- lib/git/tree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/git/tree.py') 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 -- cgit v1.2.1