diff -r 6d31ef14f396 -r 9c7da6ff6a34 etherlab/CommonEtherCATFunction.py --- a/etherlab/CommonEtherCATFunction.py Fri Sep 28 18:12:18 2018 +0300 +++ b/etherlab/CommonEtherCATFunction.py Fri Sep 28 19:02:49 2018 +0300 @@ -491,7 +491,7 @@ mb = device.getMailbox() if mb is not None: for mailbox_protocol in mailbox_protocols: - if getattr(mb,"get%s" % mailbox_protocol)() is not None: + if getattr(mb, "get%s" % mailbox_protocol)() is not None: smartview_infos["supported_mailbox"] += "%s, " % mailbox_protocol smartview_infos["supported_mailbox"] = smartview_infos["supported_mailbox"].strip(", ") @@ -785,8 +785,8 @@ data = 0 mb = device.getMailbox() if mb is not None : - for bit,mbprot in enumerate(mailbox_protocols): - if getattr(mb,"get%s" % mbprot)() is not None: + for bit, mbprot in enumerate(mailbox_protocols): + if getattr(mb, "get%s" % mbprot)() is not None: data += 1<2x}".format(coe_details)) @@ -1211,7 +1211,7 @@ coe = mb.getCoE() if coe is not None : ds402ch = coe.getDS402Channels() - eeprom.append("01" if ds402ch in [True,1] else "00") + eeprom.append("01" if ds402ch in [True, 1] else "00") # word 6 : SysmanClass(reserved) and Flags eeprom.append("00") # reserved @@ -1306,7 +1306,7 @@ """ eeprom = [] data = "" - number = {"MBoxOut":"01", "MBoxIn":"02", "Outputs":"03", "Inputs":"04"} + number = {"MBoxOut": "01", "MBoxIn": "02", "Outputs": "03", "Inputs": "04"} for sm in device.getSm(): for attr in [sm.getStartAddress(),