MNT: do not use 'is' with literals, use ==
py3.8 gives a syntax warning on this
This commit is contained in:
parent
2e69b9c5e6
commit
691da09eb0
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user