New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plistlib can't load macOS BigSur system LaunchAgent #85663
Comments
When attempting to load the new LaunchAgent at File "/opt/salt/lib/python3.7/plistlib.py", line 272, in handle_end_element on
Technically this violates the spec at http://www.apple.com/DTDs/PropertyList-1.0.dtd. Figured it was worth reporting. Full Plist is attached. |
Please also report this at apple using the feedback assistent. |
This file is still present on the latest version of macOS 11 beta on ARM64, with this integer value. Furthermore plutil will happily read this file. I'm in favour of changing plistlib to parse files like this. |
Given this plist: <?xml version="1.0" encoding="UTF-8"?>
{"hex":[16777228],"oct":[123]} That is, hexadecimal values are detected and parsed, but "0" as a prefix for octal values (as in C) is not. |
Does plutil support octal (0o) and binary (0b) literals? |
It doesn't, both 0b101 and 0o101 get rejected as syntax errors. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: