non-static class methods should have self as the first parameter
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ class Version:
|
||||
self.comps = map(lambda x: int(x), util.multisplit(verstring,'.-'))
|
||||
self.verstring = verstring
|
||||
|
||||
def string():
|
||||
def string(self):
|
||||
return self.verstring
|
||||
|
||||
def pred(self,rhs,pred):
|
||||
|
||||
Reference in New Issue
Block a user