# HG changeset patch # User GP Orcullo # Date 1675466392 -28800 # Node ID a5f58ca4629bb1d12f7c26c7ea71d754605e93f0 # Parent 741d0010b4b29ecdd99614ca7a6ce157451084a0 fix name clash diff -r 741d0010b4b2 -r a5f58ca4629b modbus/modbus.py --- a/modbus/modbus.py Sat Feb 04 07:18:21 2023 +0800 +++ b/modbus/modbus.py Sat Feb 04 07:19:52 2023 +0800 @@ -92,9 +92,9 @@ if element["name"] == "ModbusRequest": for child in element["children"]: if child["name"] == "Function": - list = list(modbus_function_dict.keys()) - list.sort() - child["type"] = list + _list = list(modbus_function_dict.keys()) + _list.sort() + child["type"] = _list return infos def GetVariableLocationTree(self): @@ -238,9 +238,9 @@ if element["name"] == "MemoryArea": for child in element["children"]: if child["name"] == "MemoryAreaType": - list = list(modbus_memtype_dict.keys()) - list.sort() - child["type"] = list + _list = list(modbus_memtype_dict.keys()) + _list.sort() + child["type"] = _list return infos def GetVariableLocationTree(self):