Sergey M․
7 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
4 additions and
0 deletions
-
youtube_dl/utils.py
|
@ -1815,6 +1815,10 @@ def float_or_none(v, scale=1, invscale=1, default=None): |
|
|
return default |
|
|
return default |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def bool_or_none(v, default=None): |
|
|
|
|
|
return v if isinstance(v, bool) else default |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def strip_or_none(v): |
|
|
def strip_or_none(v): |
|
|
return None if v is None else v.strip() |
|
|
return None if v is None else v.strip() |
|
|
|
|
|
|
|
|