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

Shane G report at bugs.python.org
Sun Jul 14 12:10:14 EDT 2019


Shane G <pachoo at gmail.com> 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 <report at bugs.python.org>
<https://bugs.python.org/issue37344>
_______________________________________


More information about the Python-bugs-list mailing list