Summary: | www-client/pybugz-0.8.0 does not run with python-2.7 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeremy Olexa (darkside) (RETIRED) <darkside> |
Component: | New packages | Assignee: | William Hubbs <williamh> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 292401 | ||
Attachments: | 0001-Fix-XML-parsing-for-Python-2.7.patch |
Description
Jeremy Olexa (darkside) (RETIRED)
2010-07-13 15:33:21 UTC
Here's the problem. ForcedEncodingXMLTreeBuilder is a subclass of XMLTreeBuilder. The __init__ method doesn't initialize some members which were added to the superclass in Python 2.7. The superclass's __init__ method isn't called, because this subclass needs to force the encoding when constructing the underlying parser. The good news is that we don't need ForcedEncodingXMLTreeBuilder in Python 2.7, since Python 2.7's XMLTreeBuilder will construct the XML parser using the encoding that we supplied to the constructor. I'll be attaching a patch shortly. Created attachment 239433 [details]
0001-Fix-XML-parsing-for-Python-2.7.patch
This patch has been applied in git. Thanks for the fix. :-) (In reply to comment #3) > This patch has been applied in git. Thanks for the fix. :-) > Please release a new version. The only solution for ~arch users is the -9999 version which doesn't work for me, due to firewall rules out of my control. (In reply to comment #4) > (In reply to comment #3) > > This patch has been applied in git. Thanks for the fix. :-) > > > > Please release a new version. The only solution for ~arch users is the -9999 > version which doesn't work for me, due to firewall rules out of my control. > re-opening for more exposure... ah, www-client/pybugz-0.9.0_rc1 is in the tree. Missed that, I thought no comment was no action... |