MNT: do not use 'is' with literals, use ==

py3.8 gives a syntax warning on this
This commit is contained in:
Thomas A Caswell 2019-02-14 16:36:02 -05:00
parent 2e69b9c5e6
commit 691da09eb0
No known key found for this signature in database
GPG Key ID: BCD928050D713D75

View File

@ -986,8 +986,8 @@ class PlotItem(GraphicsWidget):
self._menuEnabled = enableMenu
if enableViewBoxMenu is None:
return
if enableViewBoxMenu is 'same':
enableViewBoxMenu = enableMenu
if enableViewBoxMenu == 'same':
enableViewBoxMenu = enableMenu
self.vb.setMenuEnabled(enableViewBoxMenu)
def menuEnabled(self):