(v: str)
| 12 | |
| 13 | |
| 14 | def parse_version(v: str) -> Tuple[int, int, int]: |
| 15 | cleaned = v.strip().lstrip('Vv') |
| 16 | parts = re.split(r'[.\-]', cleaned) |
| 17 | nums = [] |
| 18 | for p in parts[:3]: |
| 19 | try: |
| 20 | nums.append(int(p)) |
| 21 | except ValueError: |
| 22 | nums.append(0) |
| 23 | while len(nums) < 3: |
| 24 | nums.append(0) |
| 25 | return tuple(nums) |
| 26 | |
| 27 | |
| 28 | def is_newer(remote: str, local: str) -> bool: |
no outgoing calls
no test coverage detected