don't use "is" to compare string literals

pull/36/head
Jaume Delclòs Coll 2020-10-25 02:08:42 +02:00
parent f243391418
commit 729e5268e4
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class CursedMenu(object):
def set_options(self, options):
# Validates that the last option is "exit"
if options[-1] is not 'exit':
if options[-1] != 'exit':
options.append('exit')
self.options = options
@ -114,7 +114,7 @@ class CursedMenu(object):
# Actually draws the menu and handles branching
request = ""
try:
while request is not "exit":
while request != "exit":
self.draw()
request = self.get_user_input()
self.handle_request(request)