New submission from Shane G <pac...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue37344>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to