1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-28 02:26:49 +00:00

[utils] Carry long doc string

This commit is contained in:
Sergey M․ 2017-03-01 23:04:02 +07:00
parent 40df485f55
commit 158af5242e
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -473,7 +473,8 @@ def timeconvert(timestr):
def sanitize_filename(s, restricted=False, is_id=False):
"""Sanitizes a string so it could be used as part of a filename.
If restricted is set, use a stricter subset of allowed characters.
Set is_id if this is not an arbitrary string, but an ID that should be kept if possible
Set is_id if this is not an arbitrary string, but an ID that should be kept
if possible.
"""
def replace_insane(char):
if restricted and char in ACCENT_CHARS: