X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Futils.py;h=e583299c57b3c6aca3fd4783beef5246be35661d;hb=36a0e46c39ea4f211dea9944177976e8f8364736;hp=da4ec7f209a4d0dfbad84254ee51914c3fadc270;hpb=a7aaa39863a6b1ab89a56a55521fd4779c6ac900;p=youtube-dl diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index da4ec7f20..e583299c5 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -984,7 +984,7 @@ def date_from_str(date_str): if sign == '-': time = -time unit = match.group('unit') - # A bad aproximation? + # A bad approximation? if unit == 'month': unit = 'day' time *= 30 @@ -1307,7 +1307,7 @@ def parse_filesize(s): 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, @@ -1857,7 +1857,7 @@ def encode_data_uri(data, mime_type): 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