Lines Matching refs:vstring
38 def __init__ (self, vstring=None): argument
39 if vstring:
40 self.parse(vstring)
134 def parse (self, vstring): argument
135 match = self.version_re.match(vstring)
137 raise ValueError("invalid version number '%s'" % vstring)
156 vstring = '.'.join(map(str, self.version[0:2]))
158 vstring = '.'.join(map(str, self.version))
161 vstring = vstring + self.prerelease[0] + str(self.prerelease[1])
163 return vstring
302 def __init__ (self, vstring=None): argument
303 if vstring:
304 self.parse(vstring)
307 def parse (self, vstring): argument
311 self.vstring = vstring
312 components = [x for x in self.component_re.split(vstring)
324 return self.vstring