##// END OF EJS Templates
global: use python3 in shebangs...
Gregory Szorc -
r46434:c102b704 default
parent child Browse files
Show More
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # check-code - a style and portability checker for Mercurial
3 # check-code - a style and portability checker for Mercurial
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # Copyright 2014 Matt Mackall <mpm@selenic.com>
3 # Copyright 2014 Matt Mackall <mpm@selenic.com>
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # check-config - a config flag documentation checker for Mercurial
3 # check-config - a config flag documentation checker for Mercurial
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # check-py3-compat - check Python 3 compatibility of Mercurial files
3 # check-py3-compat - check Python 3 compatibility of Mercurial files
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # Dumps output generated by Mercurial's command server in a formatted style to a
3 # Dumps output generated by Mercurial's command server in a formatted style to a
4 # given file or stderr if '-' is specified. Output is also written in its raw
4 # given file or stderr if '-' is specified. Output is also written in its raw
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 # Dump revlogs as raw data stream
2 # Dump revlogs as raw data stream
3 # $ find .hg/store/ -name "*.i" | xargs dumprevlog > repo.dump
3 # $ find .hg/store/ -name "*.i" | xargs dumprevlog > repo.dump
4
4
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # Copyright 2005-2007 by Intevation GmbH <intevation@intevation.de>
3 # Copyright 2005-2007 by Intevation GmbH <intevation@intevation.de>
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # hgperf - measure performance of Mercurial commands
3 # hgperf - measure performance of Mercurial commands
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # An example FastCGI script for use with flup, edit as necessary
3 # An example FastCGI script for use with flup, edit as necessary
4
4
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 from __future__ import absolute_import, print_function
3 from __future__ import absolute_import, print_function
4
4
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # Copyright 2018 Paul Morelle <Paul.Morelle@octobus.net>
3 # Copyright 2018 Paul Morelle <Paul.Morelle@octobus.net>
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # A small script to automatically reject idle Diffs
3 # A small script to automatically reject idle Diffs
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 # Measure the performance of a list of revsets against multiple revisions
3 # Measure the performance of a list of revsets against multiple revisions
4 # defined by parameter. Checkout one by one and run perfrevset with every
4 # defined by parameter. Checkout one by one and run perfrevset with every
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 from __future__ import absolute_import
2 from __future__ import absolute_import
3
3
4 import getopt
4 import getopt
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 # Undump a dump from dumprevlog
2 # Undump a dump from dumprevlog
3 # $ hg init
3 # $ hg init
4 # $ undumprevlog < repo.dump
4 # $ undumprevlog < repo.dump
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # checkseclevel - checking section title levels in each online help document
3 # checkseclevel - checking section title levels in each online help document
4
4
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # docchecker - look for problematic markup
3 # docchecker - look for problematic markup
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 """usage: %s DOC ...
2 """usage: %s DOC ...
3
3
4 where DOC is the name of a document
4 where DOC is the name of a document
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # runrst - register custom roles and run correct writer
3 # runrst - register custom roles and run correct writer
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # mercurial - scalable distributed SCM
3 # mercurial - scalable distributed SCM
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # An example hgweb CGI script, edit as necessary
3 # An example hgweb CGI script, edit as necessary
4 # See also https://mercurial-scm.org/wiki/PublishingRepositories
4 # See also https://mercurial-scm.org/wiki/PublishingRepositories
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # check-translation.py - check Mercurial specific translation problems
3 # check-translation.py - check Mercurial specific translation problems
4 from __future__ import absolute_import
4 from __future__ import absolute_import
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # hggettext - carefully extract docstrings for Mercurial
3 # hggettext - carefully extract docstrings for Mercurial
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # posplit - split messages in paragraphs on .po/.pot files
3 # posplit - split messages in paragraphs on .po/.pot files
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # generate-branchy-bundle - generate a branch for a "large" branchy repository
3 # generate-branchy-bundle - generate a branch for a "large" branchy repository
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # check-perf-code - (historical) portability checker for contrib/perf.py
3 # check-perf-code - (historical) portability checker for contrib/perf.py
4
4
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 from __future__ import absolute_import
3 from __future__ import absolute_import
4
4
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 """dummy SMTP server for use in tests"""
3 """dummy SMTP server for use in tests"""
4
4
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 from __future__ import absolute_import
3 from __future__ import absolute_import
4
4
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 """
3 """
4 Utility for inspecting files in various ways.
4 Utility for inspecting files in various ways.
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 # Filter output by pyflakes to control which warnings we check
3 # Filter output by pyflakes to control which warnings we check
4
4
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 # Filters traceback lines from stdin.
3 # Filters traceback lines from stdin.
4
4
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 # fsmonitor-run-tests.py - Run Mercurial tests with fsmonitor enabled
3 # fsmonitor-run-tests.py - Run Mercurial tests with fsmonitor enabled
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 """This does HTTP GET requests given a host:port and path and returns
3 """This does HTTP GET requests given a host:port and path and returns
4 a subset of the headers plus the body of the result."""
4 a subset of the headers plus the body of the result."""
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 """Test the running system for features availability. Exit with zero
2 """Test the running system for features availability. Exit with zero
3 if all features are there, non-zero otherwise. If a feature name is
3 if all features are there, non-zero otherwise. If a feature name is
4 prefixed with "no-", the absence of feature is tested.
4 prefixed with "no-", the absence of feature is tested.
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 from __future__ import absolute_import
3 from __future__ import absolute_import
4 import errno
4 import errno
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 # like ls -l, but do not print date, user, or non-common mode bit, to avoid
3 # like ls -l, but do not print date, user, or non-common mode bit, to avoid
4 # using globs in tests.
4 # using globs in tests.
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # Based on python's Tools/scripts/md5sum.py
3 # Based on python's Tools/scripts/md5sum.py
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # simple script to be used in hooks
3 # simple script to be used in hooks
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 from __future__ import absolute_import, print_function
3 from __future__ import absolute_import, print_function
4
4
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 # Copyright 2010 Intevation GmbH
2 # Copyright 2010 Intevation GmbH
3 # Author(s):
3 # Author(s):
4 # Thomas Arendsen Hein <thomas@intevation.de>
4 # Thomas Arendsen Hein <thomas@intevation.de>
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # run-tests.py - Run a set of tests on Mercurial
3 # run-tests.py - Run a set of tests on Mercurial
4 #
4 #
@@ -3434,7 +3434,7 b' class TestRunner(object):'
3434 def _usecorrectpython(self):
3434 def _usecorrectpython(self):
3435 """Configure the environment to use the appropriate Python in tests."""
3435 """Configure the environment to use the appropriate Python in tests."""
3436 # Tests must use the same interpreter as us or bad things will happen.
3436 # Tests must use the same interpreter as us or bad things will happen.
3437 pyexename = sys.platform == 'win32' and b'python.exe' or b'python'
3437 pyexename = sys.platform == 'win32' and b'python.exe' or b'python3'
3438
3438
3439 # os.symlink() is a thing with py3 on Windows, but it requires
3439 # os.symlink() is a thing with py3 on Windows, but it requires
3440 # Administrator rights.
3440 # Administrator rights.
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 #
2 #
3 # A portable replacement for 'seq'
3 # A portable replacement for 'seq'
4 #
4 #
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 from __future__ import absolute_import
3 from __future__ import absolute_import
4
4
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 """
2 """
3 Tests the behavior of filelog w.r.t. data starting with '\1\n'
3 Tests the behavior of filelog w.r.t. data starting with '\1\n'
4 """
4 """
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 from __future__ import absolute_import, print_function
2 from __future__ import absolute_import, print_function
3
3
4 import hashlib
4 import hashlib
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 from __future__ import absolute_import
2 from __future__ import absolute_import
3
3
4 import hashlib
4 import hashlib
@@ -1412,7 +1412,7 b' running is placed.'
1412 > This should print the start of check-code. If this passes but the
1412 > This should print the start of check-code. If this passes but the
1413 > previous check failed, that means we found a copy of check-code at whatever
1413 > previous check failed, that means we found a copy of check-code at whatever
1414 > RUNTESTSDIR ended up containing, even though it doesn't match TESTDIR.
1414 > RUNTESTSDIR ended up containing, even though it doesn't match TESTDIR.
1415 > $ head -n 3 "\$RUNTESTDIR"/../contrib/check-code.py | sed 's@.!.*python@#!USRBINENVPY@'
1415 > $ head -n 3 "\$RUNTESTDIR"/../contrib/check-code.py | sed 's@.!.*python3@#!USRBINENVPY@'
1416 > #!USRBINENVPY
1416 > #!USRBINENVPY
1417 > #
1417 > #
1418 > # check-code - a style and portability checker for Mercurial
1418 > # check-code - a style and portability checker for Mercurial
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 from __future__ import absolute_import, print_function
2 from __future__ import absolute_import, print_function
3
3
4 import sys
4 import sys
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2 """
2 """
3 Tests the buffering behavior of stdio streams in `mercurial.utils.procutil`.
3 Tests the buffering behavior of stdio streams in `mercurial.utils.procutil`.
4 """
4 """
@@ -1,4 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python3
2
2
3 from __future__ import absolute_import, print_function
3 from __future__ import absolute_import, print_function
4
4
General Comments 0
You need to be logged in to leave comments. Login now