From: Matthew Fernandez Date: Sat, 5 Jun 2021 19:25:56 +0000 (-0700) Subject: remove some useless Python 3 version testing X-Git-Tag: 2.47.3~8^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=305fc161f756b517c9031c92086ed96bb81c192f;p=graphviz remove some useless Python 3 version testing Python 3’s major version is, by definition, 3. 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 4ba6cdc91..9118ddbcf 100644 --- a/configure.ac +++ b/configure.ac @@ -1340,18 +1340,6 @@ else PYTHON3_VERSION=`$PYTHON3 -c "import sys; print('%d.%d' % sys.version_info[[0:2]])"` if test "x$PYTHON3_VERSION" = "x"; then PYTHON3= - else - PYTHON3_VERSION_MAJOR=`echo $PYTHON3_VERSION | cut -d '.' -f 1` - PYTHON3_VERSION_MINOR=`echo $PYTHON3_VERSION | cut -d '.' -f 2` - if test $PYTHON3_VERSION_MAJOR -lt 3; then - if test $PYTHON3_VERSION_MAJOR -lt 2; then - PYTHON3= - else - if test $PYTHON3_VERSION_MINOR -lt 3; then - PYTHON3= - fi - fi - fi fi fi if test "x$PYTHON3" = "x"; then