From 171df70a437a6efde10723baea0f5800fe6bdeee Mon Sep 17 00:00:00 2001
From: Robin Dunn <robin@alldunn.com>
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 dec91d83e..dd3f77d52 100644
--- a/wx/lib/plot/plotcanvas.py
+++ b/wx/lib/plot/plotcanvas.py
@@ -1857,12 +1857,12 @@ def _Draw(self, graphics, xAxis=None, yAxis=None, dc=None):
         # 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.
