You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 8, 2023. It is now read-only.
def get_os_version_major():
'''Return major OS version.'''
full_os = platform.mac_ver()[0]
return LooseVersion(full_os.rsplit('.', 1)[0])
assumes that platform.mac_ver()[0] will return something like 10.15.0 instead of 10.15. If it deals with something like 10.15, then the function will return 10.
Re-think the logic to account for both types of scenarios.