wok diff python-pyxml/stuff/fix-python2.6.patch @ rev 12684

slitaz-configs: Fix new Openbox file
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 01 23:45:58 2012 +0200 (2012-05-01)
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	Tue May 01 23:45:58 2012 +0200
     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 = []