Patchwork D7220: contrib: require Python 3.7 for byteify-strings.py

login
register
mail settings
Submitter phabricator
Date Nov. 4, 2019, 7:21 p.m.
Message ID <differential-rev-PHID-DREV-4gr65bibsoro6gzbzmh4-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42729/
State Superseded
Headers show

Comments

phabricator - Nov. 4, 2019, 7:21 p.m.
Kwan created this revision.
Herald added subscribers: mercurial-devel, mjpieters.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  bb509f39d387 <https://phab.mercurial-scm.org/rHGbb509f39d387ae18214115e341a13417c197dd75> made an error, it's actually 3.7 that introduced token.COMMENT.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D7220

AFFECTED FILES
  contrib/byteify-strings.py
  tests/test-byteify-strings.t

CHANGE DETAILS




To: Kwan, #hg-reviewers
Cc: mjpieters, mercurial-devel

Patch

diff --git a/tests/test-byteify-strings.t b/tests/test-byteify-strings.t
--- a/tests/test-byteify-strings.t
+++ b/tests/test-byteify-strings.t
@@ -1,4 +1,4 @@ 
-#require py36
+#require py37
 
   $ byteify_strings () {
   >   $PYTHON "$TESTDIR/../contrib/byteify-strings.py" "$@"
diff --git a/contrib/byteify-strings.py b/contrib/byteify-strings.py
--- a/contrib/byteify-strings.py
+++ b/contrib/byteify-strings.py
@@ -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()