Message149011
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+ |
|
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 | |
|