[lxml-dev] [BUG] lxml-2* hangs on interpreter shutdown with gtk-mainloop

René 'Necoro' Neumann lists at necoro.eu
Tue Mar 18 20:27:37 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey,

Stefan Behnel schrieb:
| Hi,
|
| René 'Necoro' Neumann wrote:
|>> I attached a patch that also works for me and (again) seems to work
|>> around the symptom you see.
|> This patch only works for me when passing a filename or file to parse().
|> When passing a StringIO instance it still hangs.
|
| True, didn't realise that in my tests.
|
| Here is another patch that seems to work better for me (still no idea
why).

I did not test the patch - but I guess it does not change anything, does
it? It just replaces "try ... except" with "if ... is not None"
constructs :)

Or is the "return None" important. Because StringIO instances have none
of the tested attributes.

Regards,
Necoro
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH4Bep4UOg/zhYFuARArqiAJ4goMG7dHMRUWxwzHDrqASSvv54pgCdGTa7
FF6VwDzFpdPpLjpJ3g9aBDQ=
=UO7H
-----END PGP SIGNATURE-----


More information about the lxml-dev mailing list