Skip to content

Commit 02778a6

Browse files
committed
Restore compatibility with Sublime Text 2
Static methods of the CSVMatrix class were missing the @staticmethod decorator.
1 parent 96fc27d commit 02778a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

csvplugin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def Finalize(self):
6767

6868
self.valid = True
6969

70+
@staticmethod
7071
def GetCellValue(row, column_index):
7172
try:
7273
return row[column_index]
@@ -273,6 +274,7 @@ def ParseRow(self, row):
273274

274275
return columns
275276

277+
@staticmethod
276278
def FromText(text):
277279
matrix = CSVMatrix()
278280

@@ -285,6 +287,7 @@ def FromText(text):
285287

286288
return matrix
287289

290+
@staticmethod
288291
def FromView(view):
289292
text = view.substr(sublime.Region(0, view.size()))
290293

0 commit comments

Comments
 (0)