Author: Sam McCall Date: 2022-03-10T23:57:27+01:00 New Revision: 7f0df31ee3f596c36a0bb6af4248aaf431541e3a
URL: https://github.com/llvm/llvm-project/commit/7f0df31ee3f596c36a0bb6af4248aaf431541e3a DIFF: https://github.com/llvm/llvm-project/commit/7f0df31ee3f596c36a0bb6af4248aaf431541e3a.diff LOG: [clang-tools-extra] Don't consider python below LLVM_MINIMUM_PYTHON_VERSION. NFC Added: Modified: clang-tools-extra/test/lit.cfg.py Removed: ################################################################################ diff --git a/clang-tools-extra/test/lit.cfg.py b/clang-tools-extra/test/lit.cfg.py index 1527b07a33ee6..1c16cc73c7446 100644 --- a/clang-tools-extra/test/lit.cfg.py +++ b/clang-tools-extra/test/lit.cfg.py @@ -3,6 +3,7 @@ import os import platform import re +import shlex import subprocess import lit.formats @@ -73,16 +74,7 @@ if config.clang_tidy_staticanalyzer: config.available_features.add('static-analyzer') -# Get shlex.quote if available (added in 3.3), and fall back to pipes.quote if -# it's not available. -try: - import shlex - sh_quote = shlex.quote -except: - import pipes - sh_quote = pipes.quote -python_exec = sh_quote(config.python_executable) - +python_exec = shlex.quote(config.python_executable) check_clang_tidy = os.path.join( config.test_source_root, "clang-tidy", "check_clang_tidy.py") config.substitutions.append( _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits