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

* [Buildroot] [PATCH] python-pyxml: add a patch to fix syntax errors
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2015-12-14 13:03 UTC (permalink / raw)
  To: buildroot

Yegor, Clayton,

On Mon, 14 Dec 2015 12:57:05 +0100, yegorslists at googlemail.com wrote:
> 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>

I was surprised that issue was not fixed upstream, so I looked a bit.
It has been reported upstream in June this year:

  https://mail.python.org/pipermail/xml-sig/2015-June/012271.html

But the answer at
https://mail.python.org/pipermail/xml-sig/2015-June/012272.html was
pretty clear:

   PyXML is bitrotten and obsolete. You'll find the functionality it
   previously provided is now included in the Python standard library;

And later in the thread:

   PyXML has been largely obsolete since around Python 2.1 (circa 2001).
   The last PyXML release was in 2004, and the project page very
   specifically advertises it as unmaintained, out of date, do not use.
   Specifically, the "as" keyword has been reserved since Python 2.5
   (roughly 10 years ago), which is only one of many things which could
   cause such an old package to no longer function.

So, the big question is: Clayton, why did you submit the pyxml package
for addition in Buildroot ? It is not used as a dependency in any other
package as far as I can see, and it is an obsolete and deprecated XML
library, since more than 10 years.

Can we get rid of it from Buildroot ?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH] python-pyxml: add a patch to fix syntax errors
  2015-12-14 13:03 ` Thomas Petazzoni
@ 2015-12-15 21:04   ` Yann E. MORIN
  2015-12-15 22:03     ` Yegor Yefremov
  0 siblings, 1 reply; 5+ messages in thread
From: Yann E. MORIN @ 2015-12-15 21:04 UTC (permalink / raw)
  To: buildroot

Thomas, Yegor, Clayton, All,

On 2015-12-14 14:03 +0100, Thomas Petazzoni spake thusly:
> Yegor, Clayton,
> 
> On Mon, 14 Dec 2015 12:57:05 +0100, yegorslists at googlemail.com wrote:
> > 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>
[--SNIP--]
> But the answer at
> https://mail.python.org/pipermail/xml-sig/2015-June/012272.html was
> pretty clear:
> 
>    PyXML is bitrotten and obsolete. You'll find the functionality it
>    previously provided is now included in the Python standard library;
[--SNIP--]
> Can we get rid of it from Buildroot ?

Unless Clayton (the original submitter) or Yegor (the reporter of the
breakage) actually use it, It'd be of the opinion to get rid of it.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH] python-pyxml: add a patch to fix syntax errors
  2015-12-15 21:04   ` Yann E. MORIN
@ 2015-12-15 22:03     ` Yegor Yefremov
  2015-12-15 22:06       ` Yann E. MORIN
  0 siblings, 1 reply; 5+ messages in thread
From: Yegor Yefremov @ 2015-12-15 22:03 UTC (permalink / raw)
  To: buildroot

On Tue, Dec 15, 2015 at 10:04 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> Thomas, Yegor, Clayton, All,
>
> On 2015-12-14 14:03 +0100, Thomas Petazzoni spake thusly:
>> Yegor, Clayton,
>>
>> On Mon, 14 Dec 2015 12:57:05 +0100, yegorslists at googlemail.com wrote:
>> > 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>
> [--SNIP--]
>> But the answer at
>> https://mail.python.org/pipermail/xml-sig/2015-June/012272.html was
>> pretty clear:
>>
>>    PyXML is bitrotten and obsolete. You'll find the functionality it
>>    previously provided is now included in the Python standard library;
> [--SNIP--]
>> Can we get rid of it from Buildroot ?
>
> Unless Clayton (the original submitter) or Yegor (the reporter of the
> breakage) actually use it, It'd be of the opinion to get rid of it.

I'm also for removing this package. One positive thing about this
package is, that Samuel could find a way to track down Python compile
errors in the future.

Yegor

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

* [Buildroot] [PATCH] python-pyxml: add a patch to fix syntax errors
  2015-12-15 22:03     ` Yegor Yefremov
@ 2015-12-15 22:06       ` Yann E. MORIN
  0 siblings, 0 replies; 5+ messages in thread
From: Yann E. MORIN @ 2015-12-15 22:06 UTC (permalink / raw)
  To: buildroot

Yegor, All,

On 2015-12-15 23:03 +0100, Yegor Yefremov spake thusly:
> On Tue, Dec 15, 2015 at 10:04 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> > Thomas, Yegor, Clayton, All,
> >
> > On 2015-12-14 14:03 +0100, Thomas Petazzoni spake thusly:
> >> Yegor, Clayton,
> >>
> >> On Mon, 14 Dec 2015 12:57:05 +0100, yegorslists at googlemail.com wrote:
> >> > 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>
> > [--SNIP--]
> >> But the answer at
> >> https://mail.python.org/pipermail/xml-sig/2015-June/012272.html was
> >> pretty clear:
> >>
> >>    PyXML is bitrotten and obsolete. You'll find the functionality it
> >>    previously provided is now included in the Python standard library;
> > [--SNIP--]
> >> Can we get rid of it from Buildroot ?
> >
> > Unless Clayton (the original submitter) or Yegor (the reporter of the
> > breakage) actually use it, It'd be of the opinion to get rid of it.
> 
> I'm also for removing this package.

Care to send a path removing it, then, please? ;-)

> One positive thing about this
> package is, that Samuel could find a way to track down Python compile
> errors in the future.

Muhahaha! :-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[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.