1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
From: Stephen Sinclair <radarsat1@gmail.com>
Date: Sun, 7 Jun 2020 16:02:35 +0000
Subject: Fix a Python warning about 'is' with a literal.
---
kernel/swig/fromXml.py.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/swig/fromXml.py.in b/kernel/swig/fromXml.py.in
index bb8b30b..6b3823c 100644
--- a/kernel/swig/fromXml.py.in
+++ b/kernel/swig/fromXml.py.in
@@ -430,7 +430,7 @@ def buildModelXML(xmlFile):
for osnspType in dataOSNSP.keys():
if simxml.OneStepNSProblems_List.__dict__[osnspType] is not None:
for osnspxml in simxml.OneStepNSProblems_List.__dict__[osnspType]:
- if osnspType is 'FrictionContact':
+ if osnspType == 'FrictionContact':
typeFC = int(osnspxml.Type)
osnsp = SK.FrictionContact(typeFC)
else:
|