# HG changeset patch # User Andrey Skvortsov # Date 1538228456 -10800 # Node ID 25f16349644b6f084b97be6a3b7cebd6a2112263 # Parent 41adf1dfc7a7f1fb034c68d04b295dcee0a425ad clean etherlab: pylint, C1001 # (old-style-class) Old-style class defined. diff -r 41adf1dfc7a7 -r 25f16349644b etherlab/CommonEtherCATFunction.py --- a/etherlab/CommonEtherCATFunction.py Sat Sep 29 16:39:25 2018 +0300 +++ b/etherlab/CommonEtherCATFunction.py Sat Sep 29 16:40:56 2018 +0300 @@ -142,7 +142,7 @@ # -------------------------------------------------- # Common Method For EtherCAT Management # -------------------------------------------------- -class _CommonSlave: +class _CommonSlave(object): # ----- Data Structure for ethercat management ---- SlaveState = "" diff -r 41adf1dfc7a7 -r 25f16349644b etherlab/EthercatCFileGenerator.py --- a/etherlab/EthercatCFileGenerator.py Sat Sep 29 16:39:25 2018 +0300 +++ b/etherlab/EthercatCFileGenerator.py Sat Sep 29 16:40:56 2018 +0300 @@ -137,7 +137,7 @@ return -cmp(x["matching"], y["matching"]) -class _EthercatCFileGenerator: +class _EthercatCFileGenerator(object): def __init__(self, controler): self.Controler = controler diff -r 41adf1dfc7a7 -r 25f16349644b etherlab/EthercatMaster.py --- a/etherlab/EthercatMaster.py Sat Sep 29 16:39:25 2018 +0300 +++ b/etherlab/EthercatMaster.py Sat Sep 29 16:40:56 2018 +0300 @@ -225,7 +225,7 @@ ProcessVariablesParser = GenerateParserFromXSDstring(ProcessVariablesXSD) -class _EthercatCTN: +class _EthercatCTN(object): CTNChildrenTypes = [("EthercatSlave", _EthercatSlaveCTN, "Ethercat Slave")] if HAS_MCL: diff -r 41adf1dfc7a7 -r 25f16349644b etherlab/EthercatSlave.py --- a/etherlab/EthercatSlave.py Sat Sep 29 16:39:25 2018 +0300 +++ b/etherlab/EthercatSlave.py Sat Sep 29 16:40:56 2018 +0300 @@ -64,7 +64,7 @@ # Ethercat Node # -------------------------------------------------- -class _EthercatSlaveCTN: +class _EthercatSlaveCTN(object): NODE_PROFILE = None EditorType = NodeEditor diff -r 41adf1dfc7a7 -r 25f16349644b etherlab/etherlab.py --- a/etherlab/etherlab.py Sat Sep 29 16:39:25 2018 +0300 +++ b/etherlab/etherlab.py Sat Sep 29 16:40:56 2018 +0300 @@ -58,7 +58,7 @@ ("PDO type", str, "")] -class EntryListFactory: +class EntryListFactory(object): def __init__(self, entries): self.Entries = entries @@ -154,7 +154,7 @@ group["children"].sort(GroupItemCompare) -class ModulesLibrary: +class ModulesLibrary(object): MODULES_EXTRA_PARAMS = [ ( @@ -409,7 +409,7 @@ os.path.join(USERDATA_DIR, "ethercat_modules")) -class RootClass: +class RootClass(object): CTNChildrenTypes = [("EthercatNode", _EthercatCTN, "Ethercat Master")] EditorType = LibraryEditor