Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve").
(local)
| 423 | |
| 424 | |
| 425 | def _parse_local_version(local): |
| 426 | """ |
| 427 | Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve"). |
| 428 | """ |
| 429 | if local is not None: |
| 430 | return tuple( |
| 431 | part.lower() if not part.isdigit() else int(part) |
| 432 | for part in _local_version_seperators.split(local) |
| 433 | ) |
| 434 | |
| 435 | |
| 436 | def _cmpkey(epoch, release, pre, post, dev, local): |