Fix various 'testing inequality to None' syntax issues

Substitute `is not None` for `!= None`
This commit is contained in:
luz paz
2022-07-31 06:53:36 -04:00
committed by wwmayer
parent ba5c312a58
commit bf030f76aa
3 changed files with 9 additions and 9 deletions

View File

@@ -41,7 +41,7 @@ class MathParser:
'e' : math.e
}
for var in vars.keys():
if self.vars.get(var) != None:
if self.vars.get(var) is not None:
raise RuntimeError("Cannot redefine the value of " + var)
self.vars[var] = vars[var]