[issue20612] cElementTree has problems with StringIO object containing unicode content

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> wont fix stage: -> resolved status: pending -> closed ___ Python tracker

[issue20612] cElementTree has problems with StringIO object containing unicode content

2016-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue20612] cElementTree has problems with StringIO object containing unicode content

2014-02-12 Thread Allan Crooks
New submission from Allan Crooks: There seems to be a specific issue when using cElementTree.parse on a StringIO object containing unicode text - it generates a ParseError. I've tried variations of ElementTree and cElementTree, variations of StringIO and cStringIO, and used str and unicode

[issue20612] cElementTree has problems with StringIO object containing unicode content

2014-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: cStringIO.StringIO() can contains only str (unicode automatically coerced to str), while StringIO.StringIO() can contain str or unicode. SIO(uxml).read() u'simple /' CSIO(uxml).read() 'simple /' cElementTree.parse() works only with binary streams.