Split at the first occurrence of the ``:`` character. Windows drive-letters (*e.g.* ``C:``) are ignored herein.
(key: str)
| 66 | |
| 67 | |
| 68 | def _key_func(key: str) -> str: |
| 69 | """Split at the first occurrence of the ``:`` character. |
| 70 | |
| 71 | Windows drive-letters (*e.g.* ``C:``) are ignored herein. |
| 72 | """ |
| 73 | drive, tail = os.path.splitdrive(key) |
| 74 | return os.path.join(drive, tail.split(":", 1)[0]) |
| 75 | |
| 76 | |
| 77 | def _strip_filename(msg: str) -> tuple[int, str]: |