# HG changeset patch
# User Andrey Skvortsov <andrej.skvortzov@gmail.com>
# Date 1538217041 -10800
# Node ID 47775c9367bdd70eb171191fdb007ef2903e4210
# Parent  cfa68a06a24d924f0f90794d63bb9fe47d785a5e
clean etherlab: pep8, E731 do not assign a lambda expression, use a def

diff -r cfa68a06a24d -r 47775c9367bd 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):