[debuginfo-tests] 871388e - [dexter] Require python >= 3.6
Djordje Todorovic via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 02:46:43 PDT 2020
Author: Djordje Todorovic
Date: 2020-04-23T11:46:10+02:00
New Revision: 871388e384dc39bf7c69866ab851e2fbaff8d4c8
URL: https://github.com/llvm/llvm-project/commit/871388e384dc39bf7c69866ab851e2fbaff8d4c8
DIFF: https://github.com/llvm/llvm-project/commit/871388e384dc39bf7c69866ab851e2fbaff8d4c8.diff
LOG: [dexter] Require python >= 3.6
The documentation says we need python >= 3.6. Running it with an older
version, we get verbose output from python interpreter.
This patch fixes that as:
$ python2 dexter.py list-debuggers
You need python 3.6 or later to run DExTer
Differential Revision: https://reviews.llvm.org/D78621
Added:
Modified:
debuginfo-tests/dexter/dexter.py
Removed:
################################################################################
diff --git a/debuginfo-tests/dexter/dexter.py b/debuginfo-tests/dexter/dexter.py
index 3670cafb8de3..8190a4b4e22e 100755
--- a/debuginfo-tests/dexter/dexter.py
+++ b/debuginfo-tests/dexter/dexter.py
@@ -9,6 +9,11 @@
import sys
+if sys.version_info < (3, 6, 0):
+ sys.stderr.write("You need python 3.6 or later to run DExTer\n")
+ # Equivalent to sys.exit(ReturnCode._ERROR).
+ sys.exit(1)
+
from dex.tools import main
if __name__ == '__main__':
More information about the llvm-commits
mailing list