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 fcb4df1 commit 610631eCopy full SHA for 610631e
test/testall.py
@@ -17,7 +17,7 @@ def _python_ver_from_python(python):
17
assert ' ' not in python
18
o = os.popen('''%s -c "import sys; print(sys.version)"''' % python)
19
ver_str = o.read().strip()
20
- ver_bits = re.split(r"\.|[^\d]", ver_str, 2)[:2]
+ ver_bits = re.split(r"\.|[^\d]", ver_str, maxsplit=2)[:2]
21
ver = tuple(map(int, ver_bits))
22
return ver
23
0 commit comments