[issue23454] plistlib and xml.parsers.expat python3 problems with strings and bytes

2015-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: All correct. plistlib.load() requires binary file object as documented [1]. [1] https://docs.python.org/3/library/plistlib.html#plistlib.load -- nosy: +ronaldoussoren, serhiy.storchaka resolution: -> not a bug status: open -> closed

[issue23454] plistlib and xml.parsers.expat python3 problems with strings and bytes

2015-02-12 Thread Ulrich Dorsch
New submission from Ulrich Dorsch: TypeError: startswith first arg must be str or a tuple of str, not bytes In line 558 of plistlib.py at the beginnging of "def _is_fmt_xml(header)" is the problem, caused by the use of the byte arguments defined in line 555 (prefixes = (b'