diff options
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-x | Lib/platform.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py index 48b81ac..11b501e 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -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 |