The external command handler using the option --cmd appears to fail when using current master (3.0.0a0) and Python 3.
After switching back a few times to 2.0.1 with Python 2, I gave the issue a closer look: it appears spawn.py is still using the text attribute for event, while the corresponding xml_document class in xml.py is using raw_bytes. Simply replacing text with raw_bytes, and removing an .encoding() method call, fixes this for me.
What confuses me somewhat is that changes to xml_document and in spawn.py were made on the same day, which somewhat suggests this should just work and I'm overlooking something.
A very quick test shows that the same issue actually occurs for Python 2, and the same diff below fixes it there as well.
The external command handler using the option
--cmd
appears to fail when using current master (3.0.0a0) and Python 3.After switching back a few times to 2.0.1 with Python 2, I gave the issue a closer look: it appears
spawn.py
is still using thetext
attribute forevent
, while the correspondingxml_document
class inxml.py
is usingraw_bytes
. Simply replacingtext
withraw_bytes
, and removing an.encoding()
method call, fixes this for me.What confuses me somewhat is that changes to
xml_document
and inspawn.py
were made on the same day, which somewhat suggests this should just work and I'm overlooking something.A very quick test shows that the same issue actually occurs for Python 2, and the same diff below fixes it there as well.
The diff is