--- a/etherlab/EthercatMaster.py Mon Mar 27 10:19:14 2023 +0200
+++ b/etherlab/EthercatMaster.py Fri Oct 28 12:39:15 2022 +0800
@@ -9,7 +9,7 @@
#
# See COPYING file for copyrights details.
-from __future__ import absolute_import
+
import os
from copy import deepcopy
from functools import reduce
@@ -298,7 +298,7 @@
EtherCATConfigParser.LoadXMLString(config_xmlfile.read())
if error is None:
config_is_saved = True
- except Exception, e:
+ except Exception as e:
error = e.message
config_xmlfile.close()
@@ -651,7 +651,7 @@
# Test OD
entries = device.GetEntriesList(limits)
#entries = self.CTNParent.GetEntriesList()
- entries_list = entries.items()
+ entries_list = list(entries.items())
entries_list.sort()
entries = []
current_index = None
@@ -817,7 +817,7 @@
else:
sync_managers.append(LOCATION_VAR_INPUT)
- entries = device.GetEntriesList().items()
+ entries = list(device.GetEntriesList().items())
entries.sort()
for (index, subindex), entry in entries:
var_size = self.GetSizeOfType(entry["Type"])