[New-bugs-announce] [issue20229] platform.py uses deprecated feature of plistlib

Marc Tamlyn report at bugs.python.org
Mon Jan 13 01:03:50 CET 2014

New submission from Marc Tamlyn:

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')

assignee: ronaldoussoren
components: Macintosh
messages: 207987
nosy: Marc.Tamlyn, ronaldoussoren
priority: normal
severity: normal
status: open
title: platform.py uses deprecated feature of plistlib
versions: Python 3.4

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list