All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] python-pyxml: add a patch to fix syntax errors
@ 2015-12-14 11:57 yegorslists at googlemail.com
  2015-12-14 13:03 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: yegorslists at googlemail.com @ 2015-12-14 11:57 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

Patch renames variable 'as' to 'pas' to avoid reserved keyword usage.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 .../python-pyxml-fix-syntax-errors.patch           | 60 ++++++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 package/python-pyxml/python-pyxml-fix-syntax-errors.patch

diff --git a/package/python-pyxml/python-pyxml-fix-syntax-errors.patch b/package/python-pyxml/python-pyxml-fix-syntax-errors.patch
new file mode 100644
index 0000000..1628d5f
--- /dev/null
+++ b/package/python-pyxml/python-pyxml-fix-syntax-errors.patch
@@ -0,0 +1,60 @@
+python-pyxml: fix syntax errors
+
+Rename 'as' variable to 'pas' to avoid reserved keyword usage.
+
+Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
+---
+ xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py |   10 +++++-----
+ xml/xpath/ParsedAbbreviatedRelativeLocationPath.py |    4 ++--
+ 2 files changed, 7 insertions(+), 7 deletions(-)
+
+--- a/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py
++++ b/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py
+@@ -24,8 +24,8 @@
+         self._rel = rel
+         nt = ParsedNodeTest.ParsedNodeTest('node', '')
+         ppl = ParsedPredicateList.ParsedPredicateList([])
+-        as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
+-        self._step = ParsedStep.ParsedStep(as, nt, ppl)
++        pas = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
++        self._step = ParsedStep.ParsedStep(pas, nt, ppl)
+         return
+ 
+     def evaluate(self, context):
+@@ -36,7 +36,7 @@
+         rt = self._step.select(context)
+         res = []
+         l = len(rt)
+-        
++
+         sub_rt = []
+         for ctr in range(l):
+             n = rt[ctr]
+@@ -51,7 +51,7 @@
+         context.setNodePosSize(origState)
+         return result
+     select = evaluate
+-    
++
+     def pprint(self, indent=''):
+         print indent + str(self)
+         self._step.pprint(indent + '  ')
+@@ -65,4 +65,4 @@
+ 
+     def __repr__(self):
+         return '/%s/%s' % (repr(self._step), repr(self._rel))
+-        
++
+--- a/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py
++++ b/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py
+@@ -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)
++        pas = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
++        self._middle = ParsedStep.ParsedStep(pas, nt, ppl)
+ 
+     def evaluate(self, context):
+         res = []
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-12-15 22:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-14 11:57 [Buildroot] [PATCH] python-pyxml: add a patch to fix syntax errors yegorslists at googlemail.com
2015-12-14 13:03 ` Thomas Petazzoni
2015-12-15 21:04   ` Yann E. MORIN
2015-12-15 22:03     ` Yegor Yefremov
2015-12-15 22:06       ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.