mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 07:25:04 +02:00
Sanitize / in kit-ipd heading hierarchy
This commit is contained in:
parent
3453bbc991
commit
3f5637366e
6 changed files with 33 additions and 33 deletions
|
|
@ -106,6 +106,10 @@ def fmt_real_path(path: Path) -> str:
|
|||
return repr(str(path.absolute()))
|
||||
|
||||
|
||||
def sanitize_path_name(name: str) -> str:
|
||||
return name.replace("/", "-").replace("\\", "-").strip()
|
||||
|
||||
|
||||
class ReusableAsyncContextManager(ABC, Generic[T]):
|
||||
def __init__(self) -> None:
|
||||
self._active = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue