Merge pull request #1631 from cclauss/identity-is-not-equality-in-python

Use ==/!= to compare str literals
This commit is contained in:
MikeTheWatchGuy 2019-06-25 21:10:12 -04:00 committed by GitHub
commit e59b0060b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 52 additions and 60 deletions

View file

@ -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: