Fix comparisons to None
Diff checked manually. autopep8 -a -ir -j2 --select=E711 . This required the "agressive" option because it can change code behavior.
This commit is contained in:
parent
7094931c92
commit
e0542c2e4a
14 changed files with 27 additions and 27 deletions
|
|
@ -123,7 +123,7 @@ class Downloadboob:
|
|||
|
||||
def id_regexp_matched(self, video_id, id_regexp):
|
||||
if id_regexp:
|
||||
return re.search(id_regexp, video_id) != None
|
||||
return re.search(id_regexp, video_id) is not None
|
||||
return True
|
||||
|
||||
def get_filename(self, video, relative=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue