if sign == '-':
time = -time
unit = match.group('unit')
- # A bad aproximation?
+ # A bad approximation?
if unit == 'month':
unit = 'day'
time *= 30
if s is None:
return None
- # The lower-case forms are of course incorrect and inofficial,
+ # The lower-case forms are of course incorrect and unofficial,
# but we support those too
_UNIT_TABLE = {
'B': 1,
def age_restricted(content_limit, age_limit):
- """ Returns True iff the content should be blocked """
+ """ Returns True if the content should be blocked """
if age_limit is None: # No limit set
return False