Fix improper use of operator "is" when comparing to literal values

This commit is contained in:
DarkPhoenix
2020-01-31 18:16:36 +03:00
parent 4d4680961e
commit 2f4a5a4830
4 changed files with 5 additions and 5 deletions

View File

@@ -254,7 +254,7 @@ class MainFrame(wx.Frame):
except:
fits.remove(id)
if not self.prevOpenFits['enabled'] or len(fits) is 0:
if not self.prevOpenFits['enabled'] or len(fits) == 0:
# add blank page if there are no fits to be loaded
self.fitMultiSwitch.AddPage()
return