Check if filename is under a standard man page directory. Matches manned.org's is_standard_man_location() logic. Prefers man pages installed to standard paths over application-specific directories (e.g. fish, zsh).
(filename)
| 417 | |
| 418 | |
| 419 | def _is_standard_manpath(filename): |
| 420 | """Check if filename is under a standard man page directory. |
| 421 | |
| 422 | Matches manned.org's is_standard_man_location() logic. Prefers man pages |
| 423 | installed to standard paths over application-specific directories (e.g. |
| 424 | fish, zsh). |
| 425 | """ |
| 426 | return filename.startswith("/usr/share/man/man") or filename.startswith( |
| 427 | "/usr/local/man/man" |
| 428 | ) |
| 429 | |
| 430 | |
| 431 | def _parse_date(s: str) -> tuple[int, int, int]: |
no outgoing calls
no test coverage detected