Skip to content

Commit

Permalink
Restore compatibility with Sublime Text 2
Browse files Browse the repository at this point in the history
Static methods of the CSVMatrix class were missing the @staticmethod decorator.
  • Loading branch information
wadetb committed Sep 9, 2014
1 parent 96fc27d commit 02778a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions csvplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def Finalize(self):

self.valid = True

@staticmethod
def GetCellValue(row, column_index):
try:
return row[column_index]
Expand Down Expand Up @@ -273,6 +274,7 @@ def ParseRow(self, row):

return columns

@staticmethod
def FromText(text):
matrix = CSVMatrix()

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

return matrix

@staticmethod
def FromView(view):
text = view.substr(sublime.Region(0, view.size()))

Expand Down

0 comments on commit 02778a6

Please sign in to comment.