clean etherlab: pep8, E731 do not assign a lambda expression, use a def
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Sat, 29 Sep 2018 13:30:41 +0300
changeset 2376 47775c9367bd
parent 2375 cfa68a06a24d
child 2377 88a9d64560d3
clean etherlab: pep8, E731 do not assign a lambda expression, use a def
etherlab/etherlab.py
--- a/etherlab/etherlab.py	Sat Sep 29 13:29:20 2018 +0300
+++ b/etherlab/etherlab.py	Sat Sep 29 13:30:41 2018 +0300
@@ -32,7 +32,10 @@
 # --------------------------------------------------
 
 EtherCATInfoParser = GenerateParserFromXSD(os.path.join(os.path.dirname(__file__), "EtherCATInfo.xsd"))
-EtherCATInfo_XPath = lambda xpath: etree.XPath(xpath)
+
+
+def EtherCATInfo_XPath(xpath):
+    return etree.XPath(xpath)
 
 
 def HexDecValue(context, *args):