This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: uses deprecated feature of plistlib
Type: Stage: resolved
Components: macOS Versions: Python 3.4
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ronaldoussoren Nosy List: Marc.Tamlyn, ned.deily, python-dev, ronaldoussoren, serhiy.storchaka
Priority: normal Keywords: needs review

Created on 2014-01-13 00:03 by Marc.Tamlyn, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
issue20229.patch ned.deily, 2014-01-13 01:51 review
Messages (4)
msg207987 - (view) Author: Marc Tamlyn (Marc.Tamlyn) Date: 2014-01-13 00:03
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/ DeprecationWarning: The readPlist function is deprecated, use load() instead
  pl = plistlib.readPlist(fn)
('10.9.1', ('', '', ''), 'x86_64')
msg207996 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2014-01-13 01:51
Thanks for the report!  Here's a patch.
msg208016 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2014-01-13 10:18
There is no need to indent any except the "pl = plistlib.load(f)" line.
msg208041 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-01-13 19:35
New changeset cd728dc893c9 by Ned Deily in branch 'default':
Issue #20229: Avoid plistlib deprecation warning in platform.mac_ver().
Date User Action Args
2022-04-11 14:57:56adminsetgithub: 64428
2014-01-13 19:36:20ned.deilysetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2014-01-13 19:35:00python-devsetnosy: + python-dev
messages: + msg208041
2014-01-13 10:18:03serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg208016
2014-01-13 01:51:57ned.deilysetfiles: + issue20229.patch

nosy: + ned.deily
messages: + msg207996

keywords: + needs review
stage: patch review
2014-01-13 00:03:50Marc.Tamlyncreate