mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-11-04 14:42:49 +01:00
Sanitize / in kit-ipd heading hierarchy
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user