MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / Version

Function Version

tools/scripts/mock_download_server.py:14–20  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

12
13
14def Version(string):
15 parts = [int(part) for part in string.split('.')]
16 if len(parts) not in (2, 3):
17 raise ValueError('Invalid number of fields: ' + repr(ver))
18 if len(parts) == 2:
19 parts.append(0)
20 return parts
21
22
23def add_version(versions, latest, major, minor, micro):

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
splitMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected