non-static class methods should have self as the first parameter

This commit is contained in:
Barış Metin
2005-08-05 02:17:42 +00:00
parent 7bf6c95ec7
commit 2b5d15234d
+1 -1
View File
@@ -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):