editors/TextViewer.py
changeset 1763 bcc07ff2362c
parent 1758 845ca626db09
child 1766 c1e5b9f19483
--- a/editors/TextViewer.py	Thu Aug 17 11:39:10 2017 +0300
+++ b/editors/TextViewer.py	Thu Aug 17 14:27:06 2017 +0300
@@ -495,9 +495,9 @@
                     if blocktype["type"] == "function" and blockname not in self.Keywords and blockname not in self.Variables.keys():
                         interface = dict([(name, {}) for name, type, modifier in blocktype["inputs"] + blocktype["outputs"] if name != ''])
                         for param in ["EN", "ENO"]:
-                            if not interface.has_key(param):
+                            if not param in interface:
                                 interface[param] = {}
-                        if self.Functions.has_key(blockname):
+                        if blockname in self.Functions:
                             self.Functions[blockname]["interface"].update(interface)
                             self.Functions[blockname]["extensible"] |= blocktype["extensible"]
                         else: