Message149011
| Author |
AchimGaedke |
| Recipients |
AchimGaedke |
| Date |
2011年12月08日.01:06:06 |
| SpamBayes Score |
1.7763634e-05 |
| Marked as misclassified |
No |
| Message-id |
<1323306367.38.0.12357904584.issue13551@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
sorry, the output given before was generated with python2.7
changing the line
xml.sax.parseString(xml_data, d_handler)
to
xml.sax.parseString(bytes(xml_data, "utf-8"), d_handler)
makes it working for python 3.2, result the same:
$ python3.2 pulldom_test.py
with pulldom
<xml.dom.minidom.Document object at 0x9bf9f2c> []
with minidom
<xml.dom.minidom.Document object at 0x9c2fccc> [<DOM Text node "'\n'">, <DOM Element: a at 0x9c3850c>, <DOM Text node "'\n'">, <DOM Element: b at 0x9c3856c>, <DOM Text node "'\n'">, <DOM Element: c at 0x9c385cc>, <DOM Text node "'\n'">]
Both test were done on debian testing/wheezy.
$ python3.2 -V
Python 3.2.2rc1
$ python -V
Python 2.7.2+ |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年12月08日 01:06:07 | AchimGaedke | set | recipients:
+ AchimGaedke |
| 2011年12月08日 01:06:07 | AchimGaedke | set | messageid: <1323306367.38.0.12357904584.issue13551@psf.upfronthosting.co.za> |
| 2011年12月08日 01:06:06 | AchimGaedke | link | issue13551 messages |
| 2011年12月08日 01:06:06 | AchimGaedke | create |
|