clean etherlab: pylint, W0631 # (undefined-loop-variable) Using possibly undefined loop variable 'X'
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Sat, 29 Sep 2018 16:46:41 +0300
changeset 2398 0ae721a79654
parent 2397 25f16349644b
child 2399 a9a6dbc506e9
clean etherlab: pylint, W0631 # (undefined-loop-variable) Using possibly undefined loop variable 'X'
etherlab/CommonEtherCATFunction.py
--- 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()