mirror of
https://github.com/python/cpython.git
synced 2025-08-24 02:35:59 +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:
|
except ImportError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
pl = plistlib.readPlist(fn)
|
with open(fn, 'rb') as f:
|
||||||
|
pl = plistlib.load(f)
|
||||||
release = pl['ProductVersion']
|
release = pl['ProductVersion']
|
||||||
versioninfo = ('', '', '')
|
versioninfo = ('', '', '')
|
||||||
machine = os.uname().machine
|
machine = os.uname().machine
|
||||||
|
|
|
@ -65,6 +65,8 @@ Library
|
||||||
|
|
||||||
- Issue #20072: Fixed multiple errors in tkinter with wantobjects is False.
|
- Issue #20072: Fixed multiple errors in tkinter with wantobjects is False.
|
||||||
|
|
||||||
|
- Issue #20229: Avoid plistlib deprecation warning in platform.mac_ver().
|
||||||
|
|
||||||
IDLE
|
IDLE
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue