Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357853 - Stabilize dev-python/lxml-2.3
Summary: Stabilize dev-python/lxml-2.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2011-03-07 22:50 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2011-04-16 18:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-03-07 22:50:12 UTC
Stabilize dev-python/lxml-2.3.
Comment 1 Tony Przygienda 2011-03-08 13:43:50 UTC
found on a big package here a behaviour change which I think is unintened. 

The etree.parse now (2.3) closes the descriptor passed as argument which was NOT the case in 2.2.* 

My package parses an XML file descriptor to get stuff and then does fd.seek(0) to run another parse. Ain't working anymore, throws exception on closed file.

Rework is 

cfgdata = etree.parse( os.fdopen(os.dup(self.stream.fileno() )))

but yauchz, that's ughly
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-03-08 16:01:57 UTC
(In reply to comment #1)

This is documented in release announcement, so it is intentional.
http://mailman-mail5.webfaction.com/pipermail/lxml/2011-February/005832.html
"* When finished reading from a file-like object, the parser
   immediately calls its ``.close()`` method."
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-08 22:45:00 UTC
Stable for HPPA.
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2011-03-09 00:50:36 UTC
amd64 done
Comment 5 Brent Baude (RETIRED) gentoo-dev 2011-03-27 19:57:24 UTC
ppc done
Comment 6 Andreas Schürch gentoo-dev 2011-03-28 10:19:44 UTC
Tested on x86, looks good to go here.
Comment 7 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-03-31 17:30:34 UTC
ppc64 stable
Comment 8 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-04-11 06:06:52 UTC
x86 stable, thanks Andreas
Comment 9 Raúl Porcel (RETIRED) gentoo-dev 2011-04-16 18:41:14 UTC
ia64/sparc stable, closing