projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
40df485
)
[utils] Carry long doc string
author
Sergey M․
<dstftw@gmail.com>
Wed, 1 Mar 2017 16:04:02 +0000
(23:04 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 1 Mar 2017 16:04:02 +0000
(23:04 +0700)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 807183f4a72a767b9b30b4878c15934f300def76..8738aa249e6a42cb9ed31e730055ab577b3fd41d 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-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.
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:
"""
def replace_insane(char):
if restricted and char in ACCENT_CHARS: