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
|
|
@ -89,7 +89,7 @@ class ImdbBrowser(BaseBrowser):
|
|||
|
||||
def get_movie(self, id):
|
||||
res = self.readurl('http://imdbapi.org/?id=%s&type=json&plot=simple&episode=1&lang=en-US&aka=full&release=simple&business=0&tech=0' % id )
|
||||
if res != None:
|
||||
if res is not None:
|
||||
jres = json.loads(res)
|
||||
else:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue