Description: Avoid SyntaxWarning for 'is' with literals
 Avoid the Python3 (version >= 3.8.2) warnings:
 .
     SyntaxWarning: "is" with a literal. Did you mean "=="?
     SyntaxWarning: "is not" with a literal. Did you mean "!="?
 .
 For details, see:
 https://adamj.eu/tech/2020/01/21/why-does-python-3-8-syntaxwarning-for-is-literal/
Author: Rafael Laboissière <rafael@debian.org>
Forwarded: https://sourceforge.net/p/xmds/mailman/message/36960981/
Last-Update: 2020-03-29

--- xmds2-3.0.0+dfsg.orig/xpdeint/Features/Transforms/_TransformMultiplexer.py
+++ xmds2-3.0.0+dfsg/xpdeint/Features/Transforms/_TransformMultiplexer.py
@@ -405,10 +405,10 @@ class _TransformMultiplexer (_Feature):
           postfixLattice = [(dimRep.latticeEstimate, dimRep.localLattice) for dimRep in postfixDimReps if not (dimRep.hasLocalOffset or isinstance(dimRep.runtimeLattice, basestring))]
           postfixLattice.append((vector.nComponents, '_' + vector.id + '_ncomponents'))
           
-          if transformation.get('transformType', 'real') is 'real' and vector.type == 'complex':
+          if transformation.get('transformType', 'real') == 'real' and vector.type == 'complex':
             postfixLattice.append((2, '2'))
           
-          if transformation.get('transformType', 'real') is 'complex' and vector.type == 'real':
+          if transformation.get('transformType', 'real') == 'complex' and vector.type == 'real':
             delayedException = ParserException(
               vector.xmlElement,
               "Vector '%(vectorName)s' is of type 'real', but is needed in the following bases: %(basisList)s.\n"
--- xmds2-3.0.0+dfsg.orig/xpdeint/Geometry/_FieldElement.py
+++ xmds2-3.0.0+dfsg/xpdeint/Geometry/_FieldElement.py
@@ -63,7 +63,7 @@ class _FieldElement (ScriptElement):
   
   @lazy_property
   def prefix(self):
-    return '_' + self.name if not self.name is 'geometry' else ''
+    return '_' + self.name if self.name != 'geometry' else ''
   
   # Do we have the dimension?
   def hasDimension(self, dimension):
--- xmds2-3.0.0+dfsg.orig/xpdeint/Segments/Integrators/_Integrator.py
+++ xmds2-3.0.0+dfsg/xpdeint/Segments/Integrators/_Integrator.py
@@ -173,7 +173,7 @@ class _Integrator (_Segment):
       self.samples = [int(sampleCountString) for sampleCountString in samplesList]
       
       for momentGroup, sampleCount in zip(momentGroups, self.samples):
-        if sampleCount and not (self.stepCount % sampleCount) == 0 and not self.__class__.__name__ is "AdaptiveStep":
+        if sampleCount and not (self.stepCount % sampleCount) == 0 and self.__class__.__name__ != "AdaptiveStep":
           raise ParserException(samplesElement, "Sample count does not evenly divide the number of steps")
         
         momentGroup.addSamplePoints(sampleCount * self.totalCycles)
--- xmds2-3.0.0+dfsg.orig/xpdeint/waf/waflib/extras/cpplint.py
+++ xmds2-3.0.0+dfsg/xpdeint/waf/waflib/extras/cpplint.py
@@ -169,7 +169,7 @@ class cpplint(Task.Task):
         global critical_errors
         with cpplint_wrapper(get_cpplint_logger(self.env.CPPLINT_OUTPUT), self.env.CPPLINT_BREAK, self.env.CPPLINT_OUTPUT):
             params = {key: str(self.env[key]) for key in self.env if 'CPPLINT_' in key}
-            if params['CPPLINT_OUTPUT'] is 'waf':
+            if params['CPPLINT_OUTPUT'] == 'waf':
                 params['CPPLINT_OUTPUT'] = 'emacs'
             params['CPPLINT'] = self.env.get_flat('CPPLINT')
             cmd = Utils.subst_vars(CPPLINT_STR, params)
