version_key should be list on py3

This commit is contained in:
Kagami Sascha Rosylight
2018-01-11 20:03:17 +09:00
parent 359b72dbb5
commit e3653c2f21

2
emsdk
View File

@@ -1495,7 +1495,7 @@ def find_used_python():
return None return None
def version_key(ver): def version_key(ver):
return map(int, re.split('[._-]', ver)) return list(map(int, re.split('[._-]', ver)))
# A sort function that is compatible with both Python 2 and Python 3 using a custom comparison function. # A sort function that is compatible with both Python 2 and Python 3 using a custom comparison function.
def python_2_3_sorted(arr, cmp): def python_2_3_sorted(arr, cmp):