[refactor] Do not specify redundant None as second argument in dict.get()
This commit is contained in:
parent
c78c9cd10d
commit
d800609c62
10 changed files with 28 additions and 28 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue