clean etherlab: pylint, W0611 # (unused-import) Unused import X
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Sat, 29 Sep 2018 16:39:25 +0300
changeset 2396 41adf1dfc7a7
parent 2395 d47666f33923
child 2397 25f16349644b
clean etherlab: pylint, W0611 # (unused-import) Unused import X
etherlab/CommonEtherCATFunction.py
etherlab/EthercatCIA402Slave.py
etherlab/EthercatMaster.py
etherlab/EthercatSlave.py
etherlab/etherlab.py
etherlab/runtime_etherlab.py
--- a/etherlab/CommonEtherCATFunction.py	Sat Sep 29 16:35:38 2018 +0300
+++ b/etherlab/CommonEtherCATFunction.py	Sat Sep 29 16:39:25 2018 +0300
@@ -8,7 +8,6 @@
 #
 # See COPYING file for copyrights details.
 
-import os
 import wx
 
 mailbox_protocols = ["AoE", "EoE", "CoE", "FoE", "SoE", "VoE"]
--- a/etherlab/EthercatCIA402Slave.py	Sat Sep 29 16:35:38 2018 +0300
+++ b/etherlab/EthercatCIA402Slave.py	Sat Sep 29 16:39:25 2018 +0300
@@ -13,7 +13,7 @@
 
 import wx
 
-from PLCControler import LOCATION_CONFNODE, LOCATION_MODULE, LOCATION_GROUP, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
+from PLCControler import LOCATION_CONFNODE, LOCATION_VAR_INPUT
 
 from MotionLibrary import Headers, AxisXSD
 from EthercatSlave import _EthercatSlaveCTN, _CommonSlave
--- a/etherlab/EthercatMaster.py	Sat Sep 29 16:35:38 2018 +0300
+++ b/etherlab/EthercatMaster.py	Sat Sep 29 16:39:25 2018 +0300
@@ -10,7 +10,6 @@
 # See COPYING file for copyrights details.
 
 import os
-import cPickle
 from copy import deepcopy
 from lxml import etree
 
@@ -18,7 +17,7 @@
 
 from xmlclass import *
 
-from PLCControler import UndoBuffer, LOCATION_CONFNODE, LOCATION_MODULE, LOCATION_GROUP, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
+from PLCControler import UndoBuffer, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT
 from ConfigTreeNode import ConfigTreeNode
 from dialogs import BrowseValuesLibraryDialog
 from IDEFrame import TITLE, FILEMENU, PROJECTTREE
--- a/etherlab/EthercatSlave.py	Sat Sep 29 16:35:38 2018 +0300
+++ b/etherlab/EthercatSlave.py	Sat Sep 29 16:39:25 2018 +0300
@@ -9,9 +9,7 @@
 #
 # See COPYING file for copyrights details.
 
-import wx
-
-from PLCControler import LOCATION_CONFNODE, LOCATION_MODULE, LOCATION_GROUP, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
+from PLCControler import LOCATION_CONFNODE, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
 from ConfigTreeNode import ConfigTreeNode
 
 from ConfigEditor import NodeEditor
--- a/etherlab/etherlab.py	Sat Sep 29 16:35:38 2018 +0300
+++ b/etherlab/etherlab.py	Sat Sep 29 16:39:25 2018 +0300
@@ -18,8 +18,7 @@
 
 from xmlclass import *
 
-from ConfigTreeNode import ConfigTreeNode, XSDSchemaErrorMessage
-from PLCControler import UndoBuffer, LOCATION_CONFNODE, LOCATION_MODULE, LOCATION_GROUP, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
+from ConfigTreeNode import XSDSchemaErrorMessage
 
 from EthercatSlave import ExtractHexDecValue, ExtractName
 from EthercatMaster import _EthercatCTN
--- a/etherlab/runtime_etherlab.py	Sat Sep 29 16:35:38 2018 +0300
+++ b/etherlab/runtime_etherlab.py	Sat Sep 29 16:39:25 2018 +0300
@@ -1,6 +1,5 @@
 import os
 import subprocess
-import sys
 import ctypes
 from threading import Thread
 import time