map local: minor docs improvements

This commit is contained in:
Maximilian Hils 2020-07-10 14:29:51 +02:00
parent 3bbcbacd68
commit c3894b0f58

View File

@ -42,7 +42,8 @@ def get_mime_type(file_path: str) -> str:
def _safe_path_join(root: Path, untrusted: str) -> Path: def _safe_path_join(root: Path, untrusted: str) -> Path:
"""Join a Path element with an untrusted str. """Join a Path element with an untrusted str.
This is just a convenience wrapper for werkzeug's safe_join.""" This is a convenience wrapper for werkzeug's safe_join,
raising a ValueError if the path is malformed."""
untrusted_parts = Path(untrusted).parts untrusted_parts = Path(untrusted).parts
joined = safe_join( joined = safe_join(
root.as_posix(), root.as_posix(),