STINNER Victor <vstin...@redhat.com> added the comment:
It seems like platform.mac_ver() can return None if plistlist is not available. platform.platform() can maybe try mac_ver(), but fallback on uname() if it's not available/working? -- It seems like getting the macOS version without plistlib is not easy: https://stackoverflow.com/questions/11072804/how-do-i-determine-the-os-version-at-runtime-in-os-x-or-ios-without-using-gesta ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35344> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com