beremiz

Fixup for Python 3.10 +. (#63)

12 months ago, Ivan Tyagov
3d7c55e8f7db
Parents dde2bbf2c43a
Children bcfc55f4847a
Fixup for Python 3.10 +. (#63)
--- a/opc_ua/opcua_client_maker.py Tue May 06 13:31:40 2025 +0200
+++ b/opc_ua/opcua_client_maker.py Thu Jun 19 18:40:11 2025 +0300
@@ -507,9 +507,9 @@
if len(self) == 0:
v["IEC"] = 0
else:
- iecnums = set(zip(*self)[lstcolnames.index("IEC")])
+ iecnums = set(list(zip(*self))[lstcolnames.index("IEC")])
greatest = max(iecnums)
- holes = set(range(greatest)) - iecnums
+ holes = set(range(int(greatest))) - iecnums
v["IEC"] = min(holes) if holes else greatest+1
if v["IdType"] not in UA_NODE_ID_types: