From 871388e384dc39bf7c69866ab851e2fbaff8d4c8 Mon Sep 17 00:00:00 2001 From: Djordje Todorovic Date: Thu, 23 Apr 2020 09:49:02 +0200 Subject: [PATCH] [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 --- debuginfo-tests/dexter/dexter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debuginfo-tests/dexter/dexter.py b/debuginfo-tests/dexter/dexter.py index 3670cafb8de36..8190a4b4e22ed 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__':