On 12 May 2022, at 11:26, Gilles wrote: > → tree = et.parse(StringIO(content), parser)
Why StringIO? XML should always be bytes but there also shouldn't be a need to convert what you've read from the file. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Sengelsweg 34 Düsseldorf D- 40489 Tel: +49-203-3925-0390 Mobile: +49-178-782-6226 _______________________________________________ lxml - The Python XML Toolkit mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/lxml.python.org/ Member address: [email protected]
