]> granicus.if.org Git - graphviz/commitdiff
remove some useless Python 2 version testing
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Jun 2021 19:23:11 +0000 (12:23 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 9 Jun 2021 01:26:02 +0000 (18:26 -0700)
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.

configure.ac

index a3d4f34f519959c8222ebf4e825f1bccd01afca6..4ba6cdc913df711fff02c76fc2502c4f88027674 100644 (file)
@@ -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