clean etherlab: pylint, C1001 # (old-style-class) Old-style class defined.
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Sat, 29 Sep 2018 16:40:56 +0300
changeset 2397 25f16349644b
parent 2396 41adf1dfc7a7
child 2398 0ae721a79654
clean etherlab: pylint, C1001 # (old-style-class) Old-style class defined.
etherlab/CommonEtherCATFunction.py
etherlab/EthercatCFileGenerator.py
etherlab/EthercatMaster.py
etherlab/EthercatSlave.py
etherlab/etherlab.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 = ""
--- 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
--- 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:
--- 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
 
--- 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