clean etherlab: pylint, W0631 # (undefined-loop-variable) Using possibly undefined loop variable 'X'
--- a/etherlab/CommonEtherCATFunction.py Sat Sep 29 16:40:56 2018 +0300
+++ b/etherlab/CommonEtherCATFunction.py Sat Sep 29 16:46:41 2018 +0300
@@ -330,7 +330,7 @@
self.TxPDOCategory.append(categorys)
# Parsing RxPDO entries
- for pdo, pdo_info in ([(pdo, "Outputs") for pdo in device.getRxPdo()]):
+ for pdo, pdo_info in ([(rxpdo, "Outputs") for rxpdo in device.getRxPdo()]):
# Save pdo_index, entry, and name of each entry
pdo_index = ExtractHexDecValue(pdo.getIndex().getcontent())
entries = pdo.getEntry()