This a follow up to !1246 (closed)
On python2 the following error is raised:
LookupError: unknown encoding: unicode
unicode is a correct encoding in Python 3 but not 2.
- Change encoding to
- Pass output path string instead of opening file and passing opened file object. Python2 and 3 might need different file modes, passing just path lets ElementTree select appropriate file mode.
I tested element tree on python2 and it
utf-8 seems to work. (I can't test entire build as it would require me to install too many Python 2 dependencies)