Skip to content
This repository was archived by the owner on Mar 21, 2026. It is now read-only.

Fix opening the output file in either normal or binary mode#29

Open
nolltre wants to merge 1 commit into
tjfontaine:masterfrom
nolltre:fix-lxml-wanting-byte-object
Open

Fix opening the output file in either normal or binary mode#29
nolltre wants to merge 1 commit into
tjfontaine:masterfrom
nolltre:fix-lxml-wanting-byte-object

Conversation

@nolltre

@nolltre nolltre commented Jan 19, 2021

Copy link
Copy Markdown

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

Fix the etree in python lxml wanting to have the file opened in the 'wb'
mode. Fixes the 'TypeError: write() argument must be str, not bytes'
error message but retains compatibility if lxml would be missing. Closes
issues tjfontaine#26 and tjfontaine#28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant