Skip to content

Commit 45e3931

Browse files
authored
Remove the unsupported Python 2.6 from configure
A precursor to nodejs#25878
1 parent 9b982fe commit 45e3931

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configure

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ del _
1313

1414
import sys
1515
from distutils.spawn import find_executable as which
16-
if sys.version_info[0] != 2 or sys.version_info[1] not in (6, 7):
17-
sys.stderr.write('Please use either Python 2.6 or 2.7')
16+
if sys.version_info[:2] != (2, 7):
17+
sys.stderr.write('Please use either Python 2.7')
1818

19-
python2 = which('python2') or which('python2.6') or which('python2.7')
19+
python2 = which('python2') or which('python2.7')
2020

2121
if python2:
2222
sys.stderr.write(':\n\n')

0 commit comments

Comments
 (0)