[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
This commit is contained in:
Djordje Todorovic 2020-04-23 09:49:02 +02:00
parent 34b3d5b66c
commit 871388e384
1 changed files with 5 additions and 0 deletions

View File

@ -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__':