![](https://secure.gravatar.com/avatar/2345868afc8c992a9c7475f9adc2d485.jpg?s=120&d=mm&r=g)
-----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-----