etherlab/EtherCATManagementEditor.py
changeset 2377 88a9d64560d3
parent 2375 cfa68a06a24d
child 2379 015b724c30a5
--- a/etherlab/EtherCATManagementEditor.py	Sat Sep 29 13:30:41 2018 +0300
+++ b/etherlab/EtherCATManagementEditor.py	Sat Sep 29 13:34:06 2018 +0300
@@ -1692,7 +1692,7 @@
                 row_data.append(hex_address)
 
                 # append description
-                if self.RegisterDescriptionDict.has_key(hex_address):
+                if hex_address in self.RegisterDescriptionDict:
                     row_data.append(self.RegisterDescriptionDict[hex_address])
                 else:
                     row_data.append("")