# HG changeset patch # User Ian Moody # Date 1572895176 0 # Node ID 09234eeae206e457fe3d082db1c102d5316f59d7 # Parent c3bca833cb927eb082ed02d3a260bba21b4c6fc0 contrib: require Python 3.7 for byteify-strings.py bb509f39d387 made an error, it's actually 3.7 that introduced token.COMMENT. Differential Revision: https://phab.mercurial-scm.org/D7220 diff -r c3bca833cb92 -r 09234eeae206 contrib/byteify-strings.py --- a/contrib/byteify-strings.py Mon Nov 04 12:20:11 2019 -0500 +++ b/contrib/byteify-strings.py Mon Nov 04 19:19:36 2019 +0000 @@ -339,7 +339,7 @@ if __name__ == '__main__': - if sys.version_info[0:2] < (3, 6): - print('This script must be run under Python 3.6+') + if sys.version_info[0:2] < (3, 7): + print('This script must be run under Python 3.7+') sys.exit(3) main() diff -r c3bca833cb92 -r 09234eeae206 tests/test-byteify-strings.t --- a/tests/test-byteify-strings.t Mon Nov 04 12:20:11 2019 -0500 +++ b/tests/test-byteify-strings.t Mon Nov 04 19:19:36 2019 +0000 @@ -1,4 +1,4 @@ -#require py36 +#require py37 $ byteify_strings () { > $PYTHON "$TESTDIR/../contrib/byteify-strings.py" "$@"