Lines Matching +refs:match +refs:version
57 def python_version(version): argument
94 err = 'Malformed Python version "%s"' % version
96 tokens = version.split('.')
105 match = RELEASE_LEVEL_RE.match(tokens[1])
106 if not match:
109 minor = int(match.group(1))
110 rl = match.group(2)
116 match = RELEASE_LEVEL_RE.match(tokens[2])
117 if not match:
120 micro = int(match.group(1))
121 rl2 = match.group(2)
139 def split_python_version(version=None): argument
155 major = (version >> 24) & 0x000000ff
156 minor = (version >> 16) & 0x000000ff
157 micro = (version >> 8) & 0x000000ff
158 release_level = (version >> 4) & 0x0000000f
159 serial = version & 0x0000000f
165 (release_level, version)
169 def python_version_string(version=None): argument
181 major, minor, micro, release_level, serial = split_python_version(version)