airprint-generate icon indicating copy to clipboard operation
airprint-generate copied to clipboard

Fix opening the output file in either normal or binary mode

Open nolltre opened this issue 4 years ago • 0 comments

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

nolltre avatar Jan 19 '21 22:01 nolltre