-print(etree.tostring(child, encoding='unicode',
- pretty_print=True, with_tail=False))
+s = etree.tostring(child, encoding='unicode',
+ pretty_print=True, with_tail=False)
+# compatibilité Python 3.1 (Debian Squeeze)
+if type(s) == bytes:
+ s = str(s, 'utf16')
+
+print(s)