airprint-generate
airprint-generate copied to clipboard
Fix opening the output file in either normal or binary mode
Fix the etree in Python lxml wanting to have the file opened in the 'wb' mode for the write() function to work. Fixes the 'TypeError: write() argument must be str, not bytes' error message but should retain compatibility if lxml would be missing. Closes issues #26 and #28