[BUG] pwclient broken for patch ID #197533

Yann E. MORIN yann.morin.1998 at free.fr
Sat Nov 17 09:27:58 EST 2012


Hello All!

On Sunday 11 November 2012 Yann E. MORIN wrote:
> On Friday 09 November 2012 Yann E. MORIN wrote:
> > When I try to retrieve the patch #197533 with pwclient, I get a traceback:
> > 
> > ---8<---
> > $ pwclient view 197533
> > Traceback (most recent call last):
> >   File "/home/ymorin/bin/pwclient", line 481, in <module>
> >     main()
> >   File "/home/ymorin/bin/pwclient", line 435, in main
> >     s = rpc.patch_get_mbox(patch_id)
> >   File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
> >     return self.__send(self.__name, args)
> >   File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
> >     verbose=self.__verbose
> >   File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
> >     return self._parse_response(h.getfile(), sock)
> >   File "/usr/lib/python2.6/xmlrpclib.py", line 1387, in _parse_response
> >     p.feed(response)
> >   File "/usr/lib/python2.6/xmlrpclib.py", line 601, in feed
> >     self._parser.Parse(data, 0)
> > xml.parsers.expat.ExpatError: not well-formed (invalid token): line 51, column 2
> > ---8<---
> 
> Patchwork URL:
>      http://patchwork.ozlabs.org/patch/197533/
> 
> After a more in-depth inspection of the patch, the line that causes issues
> (line 51, column 2) is followed by a form-feed (ascii 0x0C).

It looks like a known bug in libexpat, in fact:
    http://bugs.python.org/issue11804

It seems that libexpat does not grok lower-ascii characters.

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.  |
'------------------------------^-------^------------------^--------------------'


More information about the Patchwork mailing list