projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[refactor] Do not specify redundant None as second argument in dict.get()
[youtube-dl]
/
youtube_dl
/
utils.py
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index a82a262a03ae268a942fa851eedc4de268fdae8c..3e4219b1797b87a451191336c3fc995ef36d354c 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-1744,7
+1744,7
@@
def parse_age_limit(s):
if s is None:
return None
m = re.match(r'^(?P<age>\d{1,2})\+?$', s)
- return int(m.group('age')) if m else US_RATINGS.get(s
, None
)
+ return int(m.group('age')) if m else US_RATINGS.get(s)
def strip_jsonp(code):