wok-6.x diff python-pyxml/stuff/fix-python2.6.patch @ rev 24145
ventoy: set arch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 17 10:14:59 2021 +0000 (2021-11-17) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/python-pyxml/stuff/fix-python2.6.patch Wed Nov 17 10:14:59 2021 +0000 1.3 @@ -0,0 +1,28 @@ 1.4 +diff -ur a/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py b/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py 1.5 +--- a/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py 2003-03-11 15:01:34.000000000 +0100 1.6 ++++ b/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py 2009-05-25 16:32:26.000000000 +0200 1.7 +@@ -24,8 +24,8 @@ 1.8 + self._rel = rel 1.9 + nt = ParsedNodeTest.ParsedNodeTest('node', '') 1.10 + ppl = ParsedPredicateList.ParsedPredicateList([]) 1.11 +- as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') 1.12 +- self._step = ParsedStep.ParsedStep(as, nt, ppl) 1.13 ++ asp = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') 1.14 ++ self._step = ParsedStep.ParsedStep(asp, nt, ppl) 1.15 + return 1.16 + 1.17 + def evaluate(self, context): 1.18 +diff -ur a/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py b/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py 1.19 +--- a/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py 2003-03-11 15:01:34.000000000 +0100 1.20 ++++ b/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py 2009-05-25 16:27:55.000000000 +0200 1.21 +@@ -28,8 +28,8 @@ 1.22 + self._right = right 1.23 + nt = ParsedNodeTest.ParsedNodeTest('node','') 1.24 + ppl = ParsedPredicateList.ParsedPredicateList([]) 1.25 +- as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') 1.26 +- self._middle = ParsedStep.ParsedStep(as, nt, ppl) 1.27 ++ asp = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') 1.28 ++ self._middle = ParsedStep.ParsedStep(asp, nt, ppl) 1.29 + 1.30 + def evaluate(self, context): 1.31 + res = []