Skip to content

Commit 345021b

Browse files
committed
Use 'is' to compare True, False
1 parent 11b441a commit 345021b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/imdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def imdb(text, bot):
2727
headers=headers)
2828
content = request.json()
2929

30-
if content['success'] == False:
30+
if content['success'] is False:
3131
return 'Unknown error'
3232
elif len(content['result']) == 0:
3333
return 'No movie found'
@@ -54,7 +54,7 @@ def imdb_url(match, bot):
5454
headers=headers)
5555
content = request.json()
5656

57-
if content['success'] == True:
57+
if content['success'] is True:
5858
return movie_str(content['result'])
5959

6060

0 commit comments

Comments
 (0)