mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Issue #20229: Avoid plistlib deprecation warning in platform.mac_ver().
This commit is contained in:
parent
75ff6d284a
commit
936dfae2e2
2 changed files with 4 additions and 1 deletions
|
@ -649,7 +649,8 @@ def _mac_ver_xml():
|
|||
except ImportError:
|
||||
return None
|
||||
|
||||
pl = plistlib.readPlist(fn)
|
||||
with open(fn, 'rb') as f:
|
||||
pl = plistlib.load(f)
|
||||
release = pl['ProductVersion']
|
||||
versioninfo = ('', '', '')
|
||||
machine = os.uname().machine
|
||||
|
|
|
@ -65,6 +65,8 @@ Library
|
|||
|
||||
- Issue #20072: Fixed multiple errors in tkinter with wantobjects is False.
|
||||
|
||||
- Issue #20229: Avoid plistlib deprecation warning in platform.mac_ver().
|
||||
|
||||
IDLE
|
||||
----
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue