plcopen/structures.py
changeset 1743 c3c3d1318130
parent 1742 92932cd370a4
child 1747 6046ffa2280f
--- a/plcopen/structures.py	Tue Aug 15 16:48:49 2017 +0300
+++ b/plcopen/structures.py	Tue Aug 15 17:01:51 2017 +0300
@@ -212,7 +212,7 @@
                 funcdeclname = Function_decl["name"].strip('*_')
                 fdc = Function_decl["inputs"][:]
                 for intype in input_ovrloading_types:
-                    if intype != None:
+                    if intype is not None:
                         Function_decl["inputs"] = []
                         for decl_tpl in fdc:
                             if IsOfType(intype, decl_tpl[1]):
@@ -228,7 +228,7 @@
                         funcdeclin = funcdeclname
 
                     for outype in output_types:
-                        if outype != None:
+                        if outype is not None:
                             decl_tpl = Function_decl["outputs"][0]
                             Function_decl["outputs"] = [ (decl_tpl[0], outype,  decl_tpl[2])]
                             if funcdeclname_orig.endswith('*'):