Issue 20229: platform.py uses deprecated feature of plistlib (original) (raw)

platform.mac_ver() triggers the following deprecation warning:

python3.4 -Wall Python 3.4.0b2 (v3.4.0b2:ba32913eb13e, Jan 5 2014, 11:02:52) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information.

import platform platform.mac_ver() /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/platform.py:652: DeprecationWarning: The readPlist function is deprecated, use load() instead pl = plistlib.readPlist(fn) ('10.9.1', ('', '', ''), 'x86_64')