diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-02-14 14:25:04 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-02-14 14:25:04 +0600 |
commit | d800609c62703e4e6edd2891a8432306462e4db3 (patch) | |
tree | b38bc875bcaeac5a82d7e622b5188112cecd4bb6 /youtube_dl/utils.py | |
parent | c78c9cd10dfbb4fc3fd49df4f9c98e9c94c9aae9 (diff) |
[refactor] Do not specify redundant None as second argument in dict.get()
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index a82a262a0..3e4219b17 100644 --- 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): |