freebsd-ports/textproc/py-xml/files/patch-xml-xpath-ParsedAbbreviatedRelativeLocationPath.py
Martin Wilke 9477d933b7 - Fix crash with py26
PR:		136596
Submitted by:	Wen Heping <wenheping@gmail.com>
Approved by:	maintainer timeout
2009-07-27 22:27:43 +00:00

13 lines
676 B
Python

--- xml/xpath/ParsedAbbreviatedRelativeLocationPath.py.orig 2009-07-09 08:43:39.000000000 +0800
+++ xml/xpath/ParsedAbbreviatedRelativeLocationPath.py 2009-07-09 08:43:56.000000000 +0800
@@ -28,8 +28,8 @@
self._right = right
nt = ParsedNodeTest.ParsedNodeTest('node','')
ppl = ParsedPredicateList.ParsedPredicateList([])
- as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
- self._middle = ParsedStep.ParsedStep(as, nt, ppl)
+ as26 = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
+ self._middle = ParsedStep.ParsedStep(as26, nt, ppl)
def evaluate(self, context):
res = []