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):