Actually, let me take that back. The bug here is xmlfile tries to write the closing end tags in the context manager. It should not do that. https://github.com/lxml/lxml/commit/7cb20fc92944a3db3cfd63e763536af94be15aa7
Actually, let me take that back. The bug here is xmlfile tries to write the closing end tags in the context manager. It should not do that. /github. com/lxml/ lxml/commit/ 7cb20fc92944a3d b3cfd63e763536a f94be15aa7
https:/