sbin/virtualenv/res/patch/pyxml.patch
author ymh <ymh.work@gmail.com>
Mon, 18 Apr 2011 16:28:20 +0200
changeset 142 77fdf5d1786c
parent 0 cc4a51750724
permissions -rw-r--r--
Added tag V00.32 for changeset ebca39584596
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
diff -ur xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py b/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
--- xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py	2003-03-11 15:01:34.000000000 +0100
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
+++ xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py	2009-05-25 16:32:26.000000000 +0200
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
@@ -24,8 +24,8 @@
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
         self._rel = rel
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
         nt = ParsedNodeTest.ParsedNodeTest('node', '')
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
         ppl = ParsedPredicateList.ParsedPredicateList([])
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
-        as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
-        self._step = ParsedStep.ParsedStep(as, nt, ppl)
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
+        asp = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
+        self._step = ParsedStep.ParsedStep(asp, nt, ppl)
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
         return
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
 
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
     def evaluate(self, context):
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
diff -ur a/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py b/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
--- xml/xpath/ParsedAbbreviatedRelativeLocationPath.py	2003-03-11 15:01:34.000000000 +0100
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
+++ xml/xpath/ParsedAbbreviatedRelativeLocationPath.py	2009-05-25 16:27:55.000000000 +0200
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
@@ -28,8 +28,8 @@
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
         self._right = right
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
         nt = ParsedNodeTest.ParsedNodeTest('node','')
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
         ppl = ParsedPredicateList.ParsedPredicateList([])
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
-        as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
-        self._middle = ParsedStep.ParsedStep(as, nt, ppl)
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
+        asp = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
+        self._middle = ParsedStep.ParsedStep(asp, nt, ppl)
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
 
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
     def evaluate(self, context):
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
         res = []