Message189822
| Author |
loewis |
| Recipients |
BreamoreBoy, Steven.Hartland, loewis, pitrou, serhiy.storchaka, vstinner |
| Date |
2013年05月22日.15:02:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1369234979.38.0.959255092757.issue7727@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Serhiy: The patch fixes the OP's concern, but not the extended concern about producing ill-formed XML (at least not for 2.7). If the string contains non-UTF-8 data, yet the XML declaration says UTF-8, it's still ill-formed, and not caught by your patch.
I wonder whether xmlrpclib.Error would be a better exception than ValueError (although ValueError is also plausible); either way, the case should be documented. |
|