This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | ygale |
|---|---|
| Recipients | ygale |
| Date | 2007年11月21日.14:03:15 |
| SpamBayes Score | 0.06639957 |
| Marked as misclassified | No |
| Message-id | <1195653795.8.0.542576278207.issue1483@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
In the documentation for xml.sax.xmlreader.InputSource objects (section 8.12.4 of the Library Reference) we find that users of InputSource objects should use the following sequence to get their input data: 1. If the InputSource has a character stream, use that. 2. Otherwise, if the InputSource has a byte stream, use that. 3. Otherwise, open a URI connection to the system ID. prepare_input_source() skips step 1. This is a one-line fix in Lib/xml/sax/saxutils.py: - if source.getByteStream() is None: + if source.getCharacterStream is None and source.getByteStream() is None: |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007年11月21日 14:03:16 | ygale | set | spambayes_score: 0.0663996 -> 0.06639957 recipients: + ygale |
| 2007年11月21日 14:03:15 | ygale | set | spambayes_score: 0.0663996 -> 0.0663996 messageid: <1195653795.8.0.542576278207.issue1483@psf.upfronthosting.co.za> |
| 2007年11月21日 14:03:15 | ygale | link | issue1483 messages |
| 2007年11月21日 14:03:15 | ygale | create | |