Issue #20229: Avoid plistlib deprecation warning in platform.mac_ver().
This commit is contained in:
parent
75ff6d284a
commit
936dfae2e2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue