Merge pull request #1631 from cclauss/identity-is-not-equality-in-python
Use ==/!= to compare str literals
This commit is contained in:
commit
e59b0060b6
26 changed files with 52 additions and 60 deletions
|
@ -893,7 +893,7 @@ while True:
|
|||
event, values = window.Read()
|
||||
# print(event)
|
||||
# show it all again and get buttons
|
||||
if event is None or event is 'Exit':
|
||||
if event in (None, 'Exit'):
|
||||
break
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue