From a85a94231b326f75b9f9447fca5ebe92f3dcdc88 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 14 Nov 2019 12:22:45 -0800 Subject: [PATCH] Fix SyntaxWarnings --- wx/lib/plot/plotcanvas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wx/lib/plot/plotcanvas.py b/wx/lib/plot/plotcanvas.py index 12eaa0a0..d6f301a1 100644 --- a/wx/lib/plot/plotcanvas.py +++ b/wx/lib/plot/plotcanvas.py @@ -1852,12 +1852,12 @@ class PlotCanvas(wx.Panel): # Get ticks and textExtents for axis if required xticks = yticks = None xTextExtent = yTextExtent = (0, 0) # No text for ticks - if self._xSpec is not 'none': + if self._xSpec != 'none': xticks = self._xticks(xAxis[0], xAxis[1]) # w h of x axis text last number on axis xTextExtent = dc.GetTextExtent(xticks[-1][1]) - if self._ySpec is not 'none': + if self._ySpec != 'none': yticks = self._yticks(yAxis[0], yAxis[1]) if self.logScale[1]: # make sure we have enough room to display SI notation.