[issue12452] reuse plistlib in sysconfig; deprecation process in plistlib

STINNER Victor report at bugs.python.org
Thu Jun 30 16:39:21 CEST 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

sysconfig uses regex to parse the a .plist file (format based on XML), /System/Library/CoreServices/SystemVersion.plist: the plistlib module can be used instead. I rebuild my patched Python from scatch (make distclean) and I didn't notice any bootstrap issue. The platform module does already use plistlib to parse SystemVersion.plist.
=> sysconfig_plistlib.patch

I also noticed that Plist and Dict emit PendingDeprecationWarning since Python 3.1. It's maybe time to switch to DeprecationWarning? test_plistlib doesn't use these classes, and there are not documented.
=> plistlib_deprecation.patch

----------
components: Library (Lib)
files: sysconfig_plistlib.patch
keywords: patch
messages: 139481
nosy: haypo
priority: normal
severity: normal
status: open
title: reuse plistlib in sysconfig; deprecation process in plistlib
versions: Python 3.3
Added file: http://bugs.python.org/file22521/sysconfig_plistlib.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12452>
_______________________________________


More information about the Python-bugs-list mailing list