MCPcopy Create free account
hub / github.com/breach/thrust / parse_version

Function parse_version

scripts/util.py:149–157  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

147
148
149def parse_version(version):
150 if version[0] == 'v':
151 version = version[1:]
152
153 vs = version.split('.')
154 if len(vs) > 4:
155 return vs[0:4]
156 else:
157 return vs + ['0'] * (4 - len(vs))
158
159

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected