Skip to content

Commit

Permalink
[dexter] Require python >= 3.6
Browse files Browse the repository at this point in the history
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
  • Loading branch information
djtodoro committed Apr 23, 2020
1 parent 34b3d5b commit 871388e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debuginfo-tests/dexter/dexter.py
Expand Up @@ -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__':
Expand Down

0 comments on commit 871388e

Please sign in to comment.