[New-bugs-announce] [issue37344] plistlib doesn't skip whitespace in XML format detection

Shane G report at bugs.python.org
Wed Jun 19 19:18:35 EDT 2019


New submission from Shane G <pachoo at gmail.com>:

plistlib in Python 3.7.3 (and earlier) does not autodetect plist data as XML if it contains whitespace before the "<?xml" tag.  Apple tools (and code) however, do.

Suggestion:  lstrip() the header bytes before comparison

Source Link: https://github.com/python/cpython/blob/3.7/Lib/plistlib.py#L493

----------
messages: 346089
nosy: shaneg
priority: normal
severity: normal
status: open
title: plistlib doesn't skip whitespace in XML format detection
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37344>
_______________________________________


More information about the New-bugs-announce mailing list