[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-07-14 Thread Shane G


Shane G  added the comment:

This issue was created because I ran across a plist like this when parsing 
entitlements in an IPA.  I assume that this happened by some unusual step in 
the toolchain when building the application.

To some other points:
* agreed lstrip()ing just the key would not work (unfortunately I suggested 
this before actually coding up a workaround for my case).
* agreed that binary plists should not have any stripping.
* I have not tried testing apple tools (e.g. plutil) against XML plists with 
BOMs before any leading whitespace.

--

___
Python tracker 
<https://bugs.python.org/issue37344>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-06-19 Thread Shane G


New submission from Shane G :

plistlib in Python 3.7.3 (and earlier) does not autodetect plist data as XML if 
it contains whitespace before the "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 
<https://bugs.python.org/issue37344>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com