etherlab/etherlab.py
changeset 2376 47775c9367bd
parent 2370 e40f3914e55f
child 2377 88a9d64560d3
--- 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):