From 45e3931a2a9ffcc3b99c2fb00f22c89bb3f00402 Mon Sep 17 00:00:00 2001 From: cclauss Date: Wed, 24 Apr 2019 03:59:18 -0400 Subject: [PATCH] Remove the unsupported Python 2.6 from configure A precursor to #25878 --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 495d0e8848860c..d6cb3bd65a94de 100755 --- a/configure +++ b/configure @@ -13,10 +13,10 @@ del _ import sys from distutils.spawn import find_executable as which -if sys.version_info[0] != 2 or sys.version_info[1] not in (6, 7): - sys.stderr.write('Please use either Python 2.6 or 2.7') +if sys.version_info[:2] != (2, 7): + sys.stderr.write('Please use either Python 2.7') - python2 = which('python2') or which('python2.6') or which('python2.7') + python2 = which('python2') or which('python2.7') if python2: sys.stderr.write(':\n\n')