[gnome-code-assistance] [backends/pycommon] Fix from_tuple



commit 1529db68f82410250734d4796248aa116612b7e9
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Sun Nov 10 16:18:19 2013 +0100

    [backends/pycommon] Fix from_tuple

 backends/pycommon/gnome/codeassistance/types.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/backends/pycommon/gnome/codeassistance/types.py b/backends/pycommon/gnome/codeassistance/types.py
index 7798ee8..eef131b 100644
--- a/backends/pycommon/gnome/codeassistance/types.py
+++ b/backends/pycommon/gnome/codeassistance/types.py
@@ -20,9 +20,9 @@ class OpenDocument:
         self.path = path
         self.data_path = data_path
 
-    @staticmethod
-    def from_tuple(self, tp):
-        return OpenDocument(tp[0], tp[1])
+    @classmethod
+    def from_tuple(cls, tp):
+        return cls(tp[0], tp[1])
 
     def __repr__(self):
         return '<OpenDocument: {0}, {1}>'.format(self.path, self.data_path)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]