Skip to content

Commit

Permalink
Fix missing import (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathom committed Jan 24, 2024
1 parent c6b29c2 commit c2b4c38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion streamrip/filepath_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from string import printable

from pathvalidate import sanitize_filename # type: ignore
from pathvalidate import sanitize_filename, sanitize_filepath # type: ignore

ALLOWED_CHARS = set(printable)

Expand All @@ -12,6 +12,7 @@ def clean_filename(fn: str, restrict: bool = False) -> str:

return path


def clean_filepath(fn: str, restrict: bool = False) -> str:
path = str(sanitize_filepath(fn))
if restrict:
Expand Down

0 comments on commit c2b4c38

Please sign in to comment.