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