We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9229a44 commit 7a320c3Copy full SHA for 7a320c3
wscript
@@ -329,7 +329,13 @@ def _check_mac_osx_version(floor_version):
329
return None
330
331
# Extract the integer values between the '.'s
332
- osx_version_major, osx_version_minor, osx_version_patch = tuple(int(x) for x in s.strip().split('.'))
+ osx_version_data = tuple(int(x) for x in s.strip().split('.'))
333
+ osx_version_major = osx_version_data[0]
334
+ osx_version_minor = osx_version_data[1]
335
+ osx_version_patch = 0
336
+
337
+ if len(osx_version_data) > 2:
338
+ osx_version_patch = osx_version_data[2]
339
340
# Convert major/minor/patch values into a single 24-bit integer
341
osx_version = (osx_version_major & 0xff) << 16 | (osx_version_minor & 0xff) << 8 | (osx_version_patch & 0xff )
0 commit comments