From: Matthew Fernandez <matthew.fernandez@gmail.com>
Date: Sat, 5 Jun 2021 19:23:11 +0000 (-0700)
Subject: remove some useless Python 2 version testing
X-Git-Tag: 2.47.3~8^2~7
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5289a53bf27c07c655846fdb168746c0d6f8f39a;p=graphviz

remove some useless Python 2 version testing

Python 2’s major version is, by definition, 2. These tests were copied from
the unified Python support in 32466ecc452102a1fc84f4331c0ed099da4e7edc with
seemingly not much consideration of what their intent was. Related to #1992.
---

diff --git a/configure.ac b/configure.ac
index a3d4f34f5..4ba6cdc91 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1282,14 +1282,8 @@ else
         else
           PYTHON2_VERSION_MAJOR=`echo $PYTHON2_VERSION | cut -d '.' -f 1`
           PYTHON2_VERSION_MINOR=`echo $PYTHON2_VERSION | cut -d '.' -f 2`
-          if test $PYTHON2_VERSION_MAJOR -lt 3; then
-            if test $PYTHON2_VERSION_MAJOR -lt 2; then
-	      PYTHON2=
-            else
-              if test $PYTHON2_VERSION_MINOR -lt 3; then
-	        PYTHON2=
-              fi
-            fi
+          if test $PYTHON2_VERSION_MINOR -lt 3; then
+            PYTHON2=
           fi
         fi
       fi