diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-03-11 22:53:45 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-03-11 22:53:45 +0000 |
commit | 90f5ba538bf40bcf4fd41049c7bf4296d3ffc9c7 (patch) | |
tree | 37b97cf0f76dd747214492f49125d8dfe8220420 | |
parent | e8c1f95090c35bef099c88be69dd1d1311527264 (diff) | |
download | cpython-git-90f5ba538bf40bcf4fd41049c7bf4296d3ffc9c7.tar.gz |
convert shebang lines: python -> python3
212 files changed, 212 insertions, 212 deletions
diff --git a/Demo/cgi/cgi1.py b/Demo/cgi/cgi1.py index 842fef2541..b4154dfc67 100755 --- a/Demo/cgi/cgi1.py +++ b/Demo/cgi/cgi1.py @@ -1,4 +1,4 @@ -#!/usr/local/bin/python +#!/usr/bin/env python3 """CGI test 1 - check server setup.""" diff --git a/Demo/cgi/cgi2.py b/Demo/cgi/cgi2.py index 1d5822c463..8aa57b37a7 100755 --- a/Demo/cgi/cgi2.py +++ b/Demo/cgi/cgi2.py @@ -1,4 +1,4 @@ -#!/usr/local/bin/python +#!/usr/bin/env python3 """CGI test 2 - basic use of cgi module.""" diff --git a/Demo/cgi/cgi3.py b/Demo/cgi/cgi3.py index a3421b5b2d..de8ef65e49 100755 --- a/Demo/cgi/cgi3.py +++ b/Demo/cgi/cgi3.py @@ -1,4 +1,4 @@ -#!/usr/local/bin/python +#!/usr/bin/env python3 """CGI test 3 (persistent data).""" diff --git a/Demo/comparisons/regextest.py b/Demo/comparisons/regextest.py index d2c534d5ba..547ee0dd39 100755 --- a/Demo/comparisons/regextest.py +++ b/Demo/comparisons/regextest.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # 1) Regular Expressions Test # diff --git a/Demo/comparisons/sortingtest.py b/Demo/comparisons/sortingtest.py index f9ed854109..e826e81d65 100755 --- a/Demo/comparisons/sortingtest.py +++ b/Demo/comparisons/sortingtest.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # 2) Sorting Test # diff --git a/Demo/comparisons/systemtest.py b/Demo/comparisons/systemtest.py index e3d840eb12..8276333790 100755 --- a/Demo/comparisons/systemtest.py +++ b/Demo/comparisons/systemtest.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # 3) System Test # diff --git a/Demo/curses/life.py b/Demo/curses/life.py index ddff8fa173..06f969218b 100755 --- a/Demo/curses/life.py +++ b/Demo/curses/life.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # life.py -- A curses-based version of Conway's Game of Life. # Contributed by AMK # diff --git a/Demo/curses/ncurses.py b/Demo/curses/ncurses.py index 0bdc1a97e6..dedde295fe 100644 --- a/Demo/curses/ncurses.py +++ b/Demo/curses/ncurses.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # $Id$ # diff --git a/Demo/curses/rain.py b/Demo/curses/rain.py index 9d46e6eb60..7cabb4fb82 100644 --- a/Demo/curses/rain.py +++ b/Demo/curses/rain.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # $Id$ # diff --git a/Demo/curses/repeat.py b/Demo/curses/repeat.py index 93372c5d9a..570f221edc 100755 --- a/Demo/curses/repeat.py +++ b/Demo/curses/repeat.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """repeat [-i SECONDS] <shell-command> diff --git a/Demo/curses/tclock.py b/Demo/curses/tclock.py index 8058d9a420..cde0a937f9 100644 --- a/Demo/curses/tclock.py +++ b/Demo/curses/tclock.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # $Id$ # diff --git a/Demo/distutils/test2to3/maintest.py b/Demo/distutils/test2to3/maintest.py index 72a26ddea0..036dd4f00c 100644 --- a/Demo/distutils/test2to3/maintest.py +++ b/Demo/distutils/test2to3/maintest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # The above line should get replaced with the path to the Python # interpreter; the block below should get 2to3-converted. diff --git a/Demo/parser/test_parser.py b/Demo/parser/test_parser.py index e4d557103e..7d6db6b6bc 100755 --- a/Demo/parser/test_parser.py +++ b/Demo/parser/test_parser.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # (Force the script to use the latest build.) # # test_parser.py diff --git a/Demo/pdist/RCSProxy.py b/Demo/pdist/RCSProxy.py index 7c3b24f8ad..b0a01ad7b6 100755 --- a/Demo/pdist/RCSProxy.py +++ b/Demo/pdist/RCSProxy.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """RCS Proxy. diff --git a/Demo/pdist/makechangelog.py b/Demo/pdist/makechangelog.py index db66e8f6a9..dd90657d98 100755 --- a/Demo/pdist/makechangelog.py +++ b/Demo/pdist/makechangelog.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Turn a pile of RCS log output into ChangeLog file entries. diff --git a/Demo/pdist/rcvs.py b/Demo/pdist/rcvs.py index 4e2532aa54..ff178b73c1 100755 --- a/Demo/pdist/rcvs.py +++ b/Demo/pdist/rcvs.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Remote CVS -- command line interface""" diff --git a/Demo/pdist/rrcs.py b/Demo/pdist/rrcs.py index 647ecc5c05..9e246b8014 100755 --- a/Demo/pdist/rrcs.py +++ b/Demo/pdist/rrcs.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 "Remote RCS -- command line interface" diff --git a/Demo/pysvr/pysvr.py b/Demo/pysvr/pysvr.py index 3e94dbe05c..578e99cee7 100755 --- a/Demo/pysvr/pysvr.py +++ b/Demo/pysvr/pysvr.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """A multi-threaded telnet-like server that gives a Python prompt. diff --git a/Demo/scripts/beer.py b/Demo/scripts/beer.py index 8135509522..56eec7b0cb 100755 --- a/Demo/scripts/beer.py +++ b/Demo/scripts/beer.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # By GvR, demystified after a version by Fredrik Lundh. diff --git a/Demo/scripts/eqfix.py b/Demo/scripts/eqfix.py index 47c00d3b6d..8d0c8dfe73 100755 --- a/Demo/scripts/eqfix.py +++ b/Demo/scripts/eqfix.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Fix Python source files to use the new equality test operator, i.e., # if x = y: ... diff --git a/Demo/scripts/fact.py b/Demo/scripts/fact.py index 71fcda2ed0..2a3bef23c4 100755 --- a/Demo/scripts/fact.py +++ b/Demo/scripts/fact.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Factorize numbers. # The algorithm is not efficient, but easy to understand. diff --git a/Demo/scripts/find-uname.py b/Demo/scripts/find-uname.py index 1902423db7..b6ec1b6d79 100755 --- a/Demo/scripts/find-uname.py +++ b/Demo/scripts/find-uname.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ For each argument on the command line, look for it in the set of all Unicode diff --git a/Demo/scripts/from.py b/Demo/scripts/from.py index 323e68474f..c8a9346423 100755 --- a/Demo/scripts/from.py +++ b/Demo/scripts/from.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Print From and Subject of messages in $MAIL. # Extension to multiple mailboxes and other bells & whistles are left diff --git a/Demo/scripts/lpwatch.py b/Demo/scripts/lpwatch.py index 90b3ecf0ed..01d9fea833 100755 --- a/Demo/scripts/lpwatch.py +++ b/Demo/scripts/lpwatch.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Watch line printer queue(s). # Intended for BSD 4.3 lpq. diff --git a/Demo/scripts/makedir.py b/Demo/scripts/makedir.py index 7095868afc..a14e848f3b 100755 --- a/Demo/scripts/makedir.py +++ b/Demo/scripts/makedir.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Like mkdir, but also make intermediate directories if necessary. # It is not an error if the given directory already exists (as long diff --git a/Demo/scripts/markov.py b/Demo/scripts/markov.py index 990c972e04..7c08bdba67 100755 --- a/Demo/scripts/markov.py +++ b/Demo/scripts/markov.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 class Markov: def __init__(self, histsize, choice): diff --git a/Demo/scripts/mboxconvert.py b/Demo/scripts/mboxconvert.py index 2e44f06866..cb3ed89cec 100755 --- a/Demo/scripts/mboxconvert.py +++ b/Demo/scripts/mboxconvert.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Convert MH directories (1 message per file) or MMDF mailboxes (4x^A # delimited) to unix mailbox (From ... delimited) on stdout. diff --git a/Demo/scripts/morse.py b/Demo/scripts/morse.py index 5aacaa1e78..c2f408fb30 100755 --- a/Demo/scripts/morse.py +++ b/Demo/scripts/morse.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # DAH should be three DOTs. # Space between DOTs and DAHs should be one DOT. diff --git a/Demo/scripts/newslist.py b/Demo/scripts/newslist.py index 9cea1b4d20..b345f2effe 100755 --- a/Demo/scripts/newslist.py +++ b/Demo/scripts/newslist.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 ####################################################################### # Newslist $Revision$ # diff --git a/Demo/scripts/pi.py b/Demo/scripts/pi.py index 0740cd02a4..248f81f967 100755 --- a/Demo/scripts/pi.py +++ b/Demo/scripts/pi.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Print digits of pi forever. # diff --git a/Demo/scripts/pp.py b/Demo/scripts/pp.py index 2c948f75db..87b9d8f0c2 100755 --- a/Demo/scripts/pp.py +++ b/Demo/scripts/pp.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Emulate some Perl command line options. # Usage: pp [-a] [-c] [-d] [-e scriptline] [-F fieldsep] [-n] [-p] [file] ... diff --git a/Demo/scripts/primes.py b/Demo/scripts/primes.py index d296f0ef38..c994623e9c 100755 --- a/Demo/scripts/primes.py +++ b/Demo/scripts/primes.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Print prime numbers in a given range diff --git a/Demo/scripts/queens.py b/Demo/scripts/queens.py index 726433c551..ffd4bea3a4 100755 --- a/Demo/scripts/queens.py +++ b/Demo/scripts/queens.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """N queens problem. diff --git a/Demo/scripts/script.py b/Demo/scripts/script.py index b490b17924..a815a35a58 100755 --- a/Demo/scripts/script.py +++ b/Demo/scripts/script.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # script.py -- Make typescript of terminal session. # Usage: diff --git a/Demo/scripts/unbirthday.py b/Demo/scripts/unbirthday.py index af58f8f286..b3c7d23484 100755 --- a/Demo/scripts/unbirthday.py +++ b/Demo/scripts/unbirthday.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Calculate your unbirthday count (see Alice in Wonderland). # This is defined as the number of days from your birth until today diff --git a/Demo/scripts/update.py b/Demo/scripts/update.py index d49e4b39c6..49c09d81a7 100755 --- a/Demo/scripts/update.py +++ b/Demo/scripts/update.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Update a bunch of files according to a script. # The input file contains lines of the form <filename>:<lineno>:<text>, diff --git a/Demo/sockets/echosvr.py b/Demo/sockets/echosvr.py index 7de63915bf..6f7030e5bc 100755 --- a/Demo/sockets/echosvr.py +++ b/Demo/sockets/echosvr.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Python implementation of an 'echo' tcp server: echo all data it receives. # diff --git a/Demo/sockets/finger.py b/Demo/sockets/finger.py index e8b9ed2b08..4d493917ab 100755 --- a/Demo/sockets/finger.py +++ b/Demo/sockets/finger.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Python interface to the Internet finger daemon. # diff --git a/Demo/sockets/gopher.py b/Demo/sockets/gopher.py index c287319c2e..bd29ec0d83 100755 --- a/Demo/sockets/gopher.py +++ b/Demo/sockets/gopher.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # A simple gopher client. # diff --git a/Demo/sockets/mcast.py b/Demo/sockets/mcast.py index b7f85567aa..6ce7c6d406 100755 --- a/Demo/sockets/mcast.py +++ b/Demo/sockets/mcast.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Send/receive UDP multicast packets. # Requires that your OS kernel supports IP multicast. diff --git a/Demo/sockets/rpython.py b/Demo/sockets/rpython.py index b654dc270e..7dcf979440 100755 --- a/Demo/sockets/rpython.py +++ b/Demo/sockets/rpython.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Remote python client. # Execute Python commands remotely and send output back. diff --git a/Demo/sockets/rpythond.py b/Demo/sockets/rpythond.py index d745cc7ca0..e244d6cbc1 100755 --- a/Demo/sockets/rpythond.py +++ b/Demo/sockets/rpythond.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Remote python server. # Execute Python commands remotely and send output back. diff --git a/Demo/sockets/telnet.py b/Demo/sockets/telnet.py index 038036ffc6..fb36faf82e 100755 --- a/Demo/sockets/telnet.py +++ b/Demo/sockets/telnet.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Minimal interface to the Internet telnet protocol. # diff --git a/Demo/sockets/throughput.py b/Demo/sockets/throughput.py index 64244aaaf5..59543160e5 100755 --- a/Demo/sockets/throughput.py +++ b/Demo/sockets/throughput.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Test network throughput. # diff --git a/Demo/sockets/udpecho.py b/Demo/sockets/udpecho.py index 9966fd86a4..6983a1f7cb 100755 --- a/Demo/sockets/udpecho.py +++ b/Demo/sockets/udpecho.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Client and server for udp (datagram) echo. # diff --git a/Demo/tkinter/guido/MimeViewer.py b/Demo/tkinter/guido/MimeViewer.py index 11701cd0f2..b957c85965 100755 --- a/Demo/tkinter/guido/MimeViewer.py +++ b/Demo/tkinter/guido/MimeViewer.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # View a single MIME multipart message. # Display each part as a box. diff --git a/Demo/tkinter/guido/canvasevents.py b/Demo/tkinter/guido/canvasevents.py index aeb0eb1d62..e5d27cc06d 100644 --- a/Demo/tkinter/guido/canvasevents.py +++ b/Demo/tkinter/guido/canvasevents.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 from tkinter import * from Canvas import Oval, Group, CanvasText diff --git a/Demo/tkinter/guido/dialog.py b/Demo/tkinter/guido/dialog.py index 1832ba481b..f16029c476 100755 --- a/Demo/tkinter/guido/dialog.py +++ b/Demo/tkinter/guido/dialog.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # A Python function that generates dialog boxes with a text message, # optional bitmap, and any number of buttons. diff --git a/Demo/tkinter/guido/electrons.py b/Demo/tkinter/guido/electrons.py index e3bf468787..6079c0449c 100755 --- a/Demo/tkinter/guido/electrons.py +++ b/Demo/tkinter/guido/electrons.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Simulate "electrons" migrating across the screen. # An optional bitmap file in can be in the background. diff --git a/Demo/tkinter/guido/kill.py b/Demo/tkinter/guido/kill.py index 36caba6be2..dd01a2d482 100755 --- a/Demo/tkinter/guido/kill.py +++ b/Demo/tkinter/guido/kill.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Tkinter interface to Linux `kill' command. from tkinter import * diff --git a/Demo/tkinter/guido/mbox.py b/Demo/tkinter/guido/mbox.py index 45c384e66c..299999cffb 100755 --- a/Demo/tkinter/guido/mbox.py +++ b/Demo/tkinter/guido/mbox.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Scan MH folder, display results in window diff --git a/Demo/tkinter/guido/newmenubardemo.py b/Demo/tkinter/guido/newmenubardemo.py index 51c4e64771..09ac5668f6 100644 --- a/Demo/tkinter/guido/newmenubardemo.py +++ b/Demo/tkinter/guido/newmenubardemo.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Play with the new Tk 8.0 toplevel menu option.""" diff --git a/Demo/tkinter/guido/rmt.py b/Demo/tkinter/guido/rmt.py index 7b3f700e19..a3f430ea74 100755 --- a/Demo/tkinter/guido/rmt.py +++ b/Demo/tkinter/guido/rmt.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # A Python program implementing rmt, an application for remotely # controlling other Tk applications. diff --git a/Demo/tkinter/guido/solitaire.py b/Demo/tkinter/guido/solitaire.py index b2a2a667f1..375bd031b7 100755 --- a/Demo/tkinter/guido/solitaire.py +++ b/Demo/tkinter/guido/solitaire.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Solitaire game, much like the one that comes with MS Windows. diff --git a/Demo/tkinter/guido/sortvisu.py b/Demo/tkinter/guido/sortvisu.py index 0c71fc94f7..1e4165db4d 100644 --- a/Demo/tkinter/guido/sortvisu.py +++ b/Demo/tkinter/guido/sortvisu.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Sorting algorithms visualizer using Tkinter. diff --git a/Demo/tkinter/guido/svkill.py b/Demo/tkinter/guido/svkill.py index 0dd9f954eb..4ed88add69 100755 --- a/Demo/tkinter/guido/svkill.py +++ b/Demo/tkinter/guido/svkill.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Tkinter interface to SYSV `ps' and `kill' commands. diff --git a/Demo/tkinter/guido/tkman.py b/Demo/tkinter/guido/tkman.py index 52b6d03904..4fc04884fe 100755 --- a/Demo/tkinter/guido/tkman.py +++ b/Demo/tkinter/guido/tkman.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Tk man page browser -- currently only shows the Tcl/Tk man pages diff --git a/Demo/turtle/tdemo_I_dontlike_tiltdemo.py b/Demo/turtle/tdemo_I_dontlike_tiltdemo.py index 1d8652c888..1e5c440332 100644 --- a/Demo/turtle/tdemo_I_dontlike_tiltdemo.py +++ b/Demo/turtle/tdemo_I_dontlike_tiltdemo.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """ turtle-example-suite: tdemo-I_dont_like_tiltdemo.py diff --git a/Demo/turtle/tdemo_bytedesign.py b/Demo/turtle/tdemo_bytedesign.py index 2e2ac624a0..96118b32df 100644 --- a/Demo/turtle/tdemo_bytedesign.py +++ b/Demo/turtle/tdemo_bytedesign.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """ turtle-example-suite: tdemo_bytedesign.py diff --git a/Demo/turtle/tdemo_clock.py b/Demo/turtle/tdemo_clock.py index e186c38497..a0d157ba49 100644 --- a/Demo/turtle/tdemo_clock.py +++ b/Demo/turtle/tdemo_clock.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # -*- coding: cp1252 -*- """ turtle-example-suite: diff --git a/Demo/turtle/tdemo_forest.py b/Demo/turtle/tdemo_forest.py index 01fa1863dc..a837d844c9 100644 --- a/Demo/turtle/tdemo_forest.py +++ b/Demo/turtle/tdemo_forest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """ turtlegraphics-example-suite: tdemo_forest.py diff --git a/Demo/turtle/tdemo_fractalcurves.py b/Demo/turtle/tdemo_fractalcurves.py index 247f16cae2..c49f8b88ea 100644 --- a/Demo/turtle/tdemo_fractalcurves.py +++ b/Demo/turtle/tdemo_fractalcurves.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """ turtle-example-suite: tdemo_fractalCurves.py diff --git a/Demo/turtle/tdemo_lindenmayer_indian.py b/Demo/turtle/tdemo_lindenmayer_indian.py index bda5067a43..3925f25da6 100644 --- a/Demo/turtle/tdemo_lindenmayer_indian.py +++ b/Demo/turtle/tdemo_lindenmayer_indian.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """ turtle-example-suite: xtx_lindenmayer_indian.py diff --git a/Demo/turtle/tdemo_minimal_hanoi.py b/Demo/turtle/tdemo_minimal_hanoi.py index a8bdca74fa..cfb78dcac1 100644 --- a/Demo/turtle/tdemo_minimal_hanoi.py +++ b/Demo/turtle/tdemo_minimal_hanoi.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """ turtle-example-suite: tdemo_minimal_hanoi.py diff --git a/Demo/turtle/tdemo_paint.py b/Demo/turtle/tdemo_paint.py index 337a57c59d..68058ab6ac 100644 --- a/Demo/turtle/tdemo_paint.py +++ b/Demo/turtle/tdemo_paint.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """ turtle-example-suite: tdemo_paint.py diff --git a/Demo/turtle/tdemo_peace.py b/Demo/turtle/tdemo_peace.py index ea57069028..63cf7cc2e1 100644 --- a/Demo/turtle/tdemo_peace.py +++ b/Demo/turtle/tdemo_peace.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """ turtle-example-suite: tdemo_peace.py diff --git a/Demo/turtle/tdemo_penrose.py b/Demo/turtle/tdemo_penrose.py index f816f66e5d..f73c864b7b 100644 --- a/Demo/turtle/tdemo_penrose.py +++ b/Demo/turtle/tdemo_penrose.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """ xturtle-example-suite: xtx_kites_and_darts.py diff --git a/Demo/turtle/tdemo_planet_and_moon.py b/Demo/turtle/tdemo_planet_and_moon.py index 983449c096..14c4bbccc4 100644 --- a/Demo/turtle/tdemo_planet_and_moon.py +++ b/Demo/turtle/tdemo_planet_and_moon.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """ turtle-example-suite: tdemo_planets_and_moon.py diff --git a/Demo/turtle/tdemo_tree.py b/Demo/turtle/tdemo_tree.py index fda653ce1e..9c0b1f7bb4 100644 --- a/Demo/turtle/tdemo_tree.py +++ b/Demo/turtle/tdemo_tree.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """ turtle-example-suite: tdemo_tree.py diff --git a/Demo/turtle/tdemo_yinyang.py b/Demo/turtle/tdemo_yinyang.py index 6508b44a54..11d1f47cae 100644 --- a/Demo/turtle/tdemo_yinyang.py +++ b/Demo/turtle/tdemo_yinyang.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """ turtle-example-suite: tdemo_yinyang.py diff --git a/Demo/turtle/turtleDemo.py b/Demo/turtle/turtleDemo.py index 36bf15c7e5..b5b99c0c1e 100644 --- a/Demo/turtle/turtleDemo.py +++ b/Demo/turtle/turtleDemo.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 import sys import os diff --git a/Demo/turtle/turtledemo_two_canvases.py b/Demo/turtle/turtledemo_two_canvases.py index 57ecb1dea6..d2d7188bd5 100644 --- a/Demo/turtle/turtledemo_two_canvases.py +++ b/Demo/turtle/turtledemo_two_canvases.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 ## DEMONSTRATES USE OF 2 CANVASES, SO CANNOT BE RUN IN DEMOVIEWER! """turtle example: Using TurtleScreen and RawTurtle for drawing on two distinct canvases. diff --git a/Demo/zlib/minigzip.py b/Demo/zlib/minigzip.py index 28d8b2664d..b2af7f901e 100755 --- a/Demo/zlib/minigzip.py +++ b/Demo/zlib/minigzip.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Demo program for zlib; it compresses or decompresses files, but *doesn't* # delete the original. This doesn't support all of gzip's options. # diff --git a/Demo/zlib/zlibdemo.py b/Demo/zlib/zlibdemo.py index 53463dd6cd..52f71a097c 100755 --- a/Demo/zlib/zlibdemo.py +++ b/Demo/zlib/zlibdemo.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Takes an optional filename, defaulting to this file itself. # Reads the file and compresses the content using level 1 and level 9 diff --git a/Doc/includes/email-alternative.py b/Doc/includes/email-alternative.py index 82e3ffa3b3..33c430ab95 100644 --- a/Doc/includes/email-alternative.py +++ b/Doc/includes/email-alternative.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python3 import smtplib diff --git a/Doc/includes/email-dir.py b/Doc/includes/email-dir.py index e67de61dcf..b1b45b8c17 100644 --- a/Doc/includes/email-dir.py +++ b/Doc/includes/email-dir.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Send the contents of a directory as a MIME message.""" diff --git a/Doc/includes/email-unpack.py b/Doc/includes/email-unpack.py index a8f712d26f..3653543566 100644 --- a/Doc/includes/email-unpack.py +++ b/Doc/includes/email-unpack.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Unpack a MIME message into a directory of files.""" diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py index eaaf257e85..8e6b3744f2 100755 --- a/Doc/tools/rstlint.py +++ b/Doc/tools/rstlint.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Check for stylistic and formal issues in .rst and .py diff --git a/Lib/base64.py b/Lib/base64.py index e708136469..a8d9f21136 100755 --- a/Lib/base64.py +++ b/Lib/base64.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """RFC 3548: Base16, Base32, Base64 Data Encodings""" diff --git a/Lib/cProfile.py b/Lib/cProfile.py index a7686ed2b7..3e2b2edb25 100755 --- a/Lib/cProfile.py +++ b/Lib/cProfile.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Python interface for the 'lsprof' profiler. Compatible with the 'profile' module. diff --git a/Lib/difflib.py b/Lib/difflib.py index 264860e2a3..292bba9ca9 100644 --- a/Lib/difflib.py +++ b/Lib/difflib.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """ Module difflib -- helpers for computing deltas between objects. diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py index 1051cddcc0..da30e253cf 100644 --- a/Lib/http/cookies.py +++ b/Lib/http/cookies.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # #### diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index edc9334f9c..ef82d81b7b 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import os import os.path diff --git a/Lib/keyword.py b/Lib/keyword.py index a7abe2b419..a5974b5bfa 100755 --- a/Lib/keyword.py +++ b/Lib/keyword.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Keywords (from "graminit.c") diff --git a/Lib/lib2to3/pgen2/token.py b/Lib/lib2to3/pgen2/token.py index 1c810651eb..6a6d0b6b65 100755 --- a/Lib/lib2to3/pgen2/token.py +++ b/Lib/lib2to3/pgen2/token.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Token constants (from "token.h").""" diff --git a/Lib/lib2to3/tests/pytree_idempotency.py b/Lib/lib2to3/tests/pytree_idempotency.py index 414eb4d99e..a02bbfe201 100755 --- a/Lib/lib2to3/tests/pytree_idempotency.py +++ b/Lib/lib2to3/tests/pytree_idempotency.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2006 Google, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. diff --git a/Lib/mailbox.py b/Lib/mailbox.py index 3f299a8d7d..c2c9b5c549 100755 --- a/Lib/mailbox.py +++ b/Lib/mailbox.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes.""" diff --git a/Lib/pdb.py b/Lib/pdb.py index 22dcff738a..b15a3d1600 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """A Python debugger.""" diff --git a/Lib/platform.py b/Lib/platform.py index b6e75964a5..7d392502a1 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ This module tries to retrieve as much platform-identifying data as possible. It makes this information available via function APIs. diff --git a/Lib/profile.py b/Lib/profile.py index 4eb86a8c8d..a09fffea43 100755 --- a/Lib/profile.py +++ b/Lib/profile.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # # Class for profiling python code. rev 1.0 6/2/94 # diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 79fb54a51d..4a8017ef53 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: latin-1 -*- """Generate Python documentation in HTML or text for interactive use. diff --git a/Lib/quopri.py b/Lib/quopri.py index ff27923198..3d0f0ac078 100755 --- a/Lib/quopri.py +++ b/Lib/quopri.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Conversions to/from quoted-printable transport encoding as per RFC 1521.""" diff --git a/Lib/smtpd.py b/Lib/smtpd.py index 3dc979334f..17b74270b2 100755 --- a/Lib/smtpd.py +++ b/Lib/smtpd.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """An RFC 2821 smtp proxy. Usage: %(program)s [options] [localhost:localport [remotehost:remoteport]] diff --git a/Lib/smtplib.py b/Lib/smtplib.py index a01a184c9f..69ec9ec59f 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 '''SMTP/ESMTP client class. diff --git a/Lib/symbol.py b/Lib/symbol.py index ea8f2f54f7..e3fff3422c 100755 --- a/Lib/symbol.py +++ b/Lib/symbol.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Non-terminal symbols of Python grammar (from "graminit.h").""" diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py index 0ae5e9f0df..2c6fb0cb83 100755 --- a/Lib/tabnanny.py +++ b/Lib/tabnanny.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """The Tab Nanny despises ambiguous indentation. She knows no mercy. diff --git a/Lib/tarfile.py b/Lib/tarfile.py index e28b1c7e57..86844932a5 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #------------------------------------------------------------------- # tarfile.py #------------------------------------------------------------------- diff --git a/Lib/test/crashers/recursive_call.py b/Lib/test/crashers/recursive_call.py index 31c8963303..2d160a7de5 100644 --- a/Lib/test/crashers/recursive_call.py +++ b/Lib/test/crashers/recursive_call.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # No bug report AFAIK, mail on python-dev on 2006-01-10 diff --git a/Lib/test/curses_tests.py b/Lib/test/curses_tests.py index 7dedbbc937..40e832dec2 100644 --- a/Lib/test/curses_tests.py +++ b/Lib/test/curses_tests.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # $Id: ncurses.py 36559 2004-07-18 05:56:09Z tim_one $ # diff --git a/Lib/test/pystone.py b/Lib/test/pystone.py index 614551ff64..aad4d8c8f3 100755 --- a/Lib/test/pystone.py +++ b/Lib/test/pystone.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """ "PYSTONE" Benchmark Program diff --git a/Lib/test/re_tests.py b/Lib/test/re_tests.py index d314e200bb..5d16e3d183 100755 --- a/Lib/test/re_tests.py +++ b/Lib/test/re_tests.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- mode: python -*- # Re test suite and benchmark suite v1.5 diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 9f631f414f..d4f40aa16e 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Regression test. diff --git a/Lib/test/test___future__.py b/Lib/test/test___future__.py index f41b8799b4..9ae4ce40ad 100644 --- a/Lib/test/test___future__.py +++ b/Lib/test/test___future__.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import unittest from test import support import __future__ diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 8a3796c82c..5de562f19e 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Test the arraymodule. Roger E. Masse """ diff --git a/Lib/test/test_binhex.py b/Lib/test/test_binhex.py index 06fd98aa64..d6ef84a5e0 100755 --- a/Lib/test/test_binhex.py +++ b/Lib/test/test_binhex.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Test script for the binhex C module Uses the mechanism of the python binhex module diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index 9a9afa6e6b..dbbdad32ec 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 from test import support from test.support import TESTFN diff --git a/Lib/test/test_cmd.py b/Lib/test/test_cmd.py index f102fe0ae4..11602f16df 100644 --- a/Lib/test/test_cmd.py +++ b/Lib/test/test_cmd.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Test script for the 'cmd' module Original by Michael Schneider diff --git a/Lib/test/test_codecencodings_cn.py b/Lib/test/test_codecencodings_cn.py index 77bac139cf..a2d9718497 100644 --- a/Lib/test/test_codecencodings_cn.py +++ b/Lib/test/test_codecencodings_cn.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # test_codecencodings_cn.py # Codec encoding tests for PRC encodings. diff --git a/Lib/test/test_codecencodings_hk.py b/Lib/test/test_codecencodings_hk.py index b1deb715a5..ccdc0b4c55 100644 --- a/Lib/test/test_codecencodings_hk.py +++ b/Lib/test/test_codecencodings_hk.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # test_codecencodings_hk.py # Codec encoding tests for HongKong encodings. diff --git a/Lib/test/test_codecencodings_jp.py b/Lib/test/test_codecencodings_jp.py index e2cd7d7020..f56a373896 100644 --- a/Lib/test/test_codecencodings_jp.py +++ b/Lib/test/test_codecencodings_jp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # test_codecencodings_jp.py # Codec encoding tests for Japanese encodings. diff --git a/Lib/test/test_codecencodings_kr.py b/Lib/test/test_codecencodings_kr.py index 34fade923e..de4da7f5b6 100644 --- a/Lib/test/test_codecencodings_kr.py +++ b/Lib/test/test_codecencodings_kr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # test_codecencodings_kr.py # Codec encoding tests for ROK encodings. diff --git a/Lib/test/test_codecencodings_tw.py b/Lib/test/test_codecencodings_tw.py index 6b840d36ce..12d3c9fa04 100644 --- a/Lib/test/test_codecencodings_tw.py +++ b/Lib/test/test_codecencodings_tw.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # test_codecencodings_tw.py # Codec encoding tests for ROC encodings. diff --git a/Lib/test/test_codecmaps_cn.py b/Lib/test/test_codecmaps_cn.py index 34a910d876..063919d6d8 100644 --- a/Lib/test/test_codecmaps_cn.py +++ b/Lib/test/test_codecmaps_cn.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # test_codecmaps_cn.py # Codec mapping tests for PRC encodings diff --git a/Lib/test/test_codecmaps_hk.py b/Lib/test/test_codecmaps_hk.py index ddb1208b3d..bbe1f2f905 100644 --- a/Lib/test/test_codecmaps_hk.py +++ b/Lib/test/test_codecmaps_hk.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # test_codecmaps_hk.py # Codec mapping tests for HongKong encodings diff --git a/Lib/test/test_codecmaps_jp.py b/Lib/test/test_codecmaps_jp.py index 75db00c602..652bd81515 100644 --- a/Lib/test/test_codecmaps_jp.py +++ b/Lib/test/test_codecmaps_jp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # test_codecmaps_jp.py # Codec mapping tests for Japanese encodings diff --git a/Lib/test/test_codecmaps_kr.py b/Lib/test/test_codecmaps_kr.py index 0da9d1ce95..d909c8bd58 100644 --- a/Lib/test/test_codecmaps_kr.py +++ b/Lib/test/test_codecmaps_kr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # test_codecmaps_kr.py # Codec mapping tests for ROK encodings diff --git a/Lib/test/test_codecmaps_tw.py b/Lib/test/test_codecmaps_tw.py index e6df3a72fc..6db5091fc3 100644 --- a/Lib/test/test_codecmaps_tw.py +++ b/Lib/test/test_codecmaps_tw.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # test_codecmaps_tw.py # Codec mapping tests for ROC encodings diff --git a/Lib/test/test_dbm.py b/Lib/test/test_dbm.py index 78357a0c33..c1be7d95fa 100644 --- a/Lib/test/test_dbm.py +++ b/Lib/test/test_dbm.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Test script for the dbm.open function based on testdumbdbm.py""" import os diff --git a/Lib/test/test_dbm_dumb.py b/Lib/test/test_dbm_dumb.py index 7a1a16e03c..a05db915e7 100644 --- a/Lib/test/test_dbm_dumb.py +++ b/Lib/test/test_dbm_dumb.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Test script for the dumbdbm module Original by Roger E. Masse """ diff --git a/Lib/test/test_eof.py b/Lib/test/test_eof.py index 4e37560a3d..fb4ac9a639 100644 --- a/Lib/test/test_eof.py +++ b/Lib/test/test_eof.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """test script for a few new invalid token catches""" import unittest diff --git a/Lib/test/test_errno.py b/Lib/test/test_errno.py index 621335cc0f..e7d5ce5520 100755 --- a/Lib/test/test_errno.py +++ b/Lib/test/test_errno.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Test the errno module Roger E. Masse """ diff --git a/Lib/test/test_gzip.py b/Lib/test/test_gzip.py index 429ada0dcd..7eade6f60a 100644 --- a/Lib/test/test_gzip.py +++ b/Lib/test/test_gzip.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Test script for the gzip module. """ diff --git a/Lib/test/test_keywordonlyarg.py b/Lib/test/test_keywordonlyarg.py index b771a6c022..6a88b3d5d6 100644 --- a/Lib/test/test_keywordonlyarg.py +++ b/Lib/test/test_keywordonlyarg.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Unit tests for the keyword only argument specified in PEP 3102.""" diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index cb6985ea1a..02ac00e074 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright 2001-2010 by Vinay Sajip. All Rights Reserved. # diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py index 66887859cd..9de0165e29 100644 --- a/Lib/test/test_marshal.py +++ b/Lib/test/test_marshal.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from test import support import marshal diff --git a/Lib/test/test_multibytecodec.py b/Lib/test/test_multibytecodec.py index e4e86ff8c2..ce860d7bda 100644 --- a/Lib/test/test_multibytecodec.py +++ b/Lib/test/test_multibytecodec.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # test_multibytecodec.py # Unit test for multibytecodec itself diff --git a/Lib/test/test_multibytecodec_support.py b/Lib/test/test_multibytecodec_support.py index 75b3363854..70e4d752ae 100644 --- a/Lib/test/test_multibytecodec_support.py +++ b/Lib/test/test_multibytecodec_support.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # test_multibytecodec_support.py # Common Unittest Routines for CJK codecs diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index 7fcbdc3278..452e192830 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Unit tests for the multiprocessing package diff --git a/Lib/test/test_popen.py b/Lib/test/test_popen.py index 24fb846bef..da0c04eee6 100644 --- a/Lib/test/test_popen.py +++ b/Lib/test/test_popen.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Basic tests for os.popen() Particularly useful for platforms that fake popen. diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py index b64a8f7e66..c59e4fab6a 100644 --- a/Lib/test/test_random.py +++ b/Lib/test/test_random.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import unittest import random diff --git a/Lib/test/test_smtpnet.py b/Lib/test/test_smtpnet.py index 5b1b38c0f0..6f7f9ef7f4 100644 --- a/Lib/test/test_smtpnet.py +++ b/Lib/test/test_smtpnet.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import unittest from test import support diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 4dc34ceb37..6bff03e2ba 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import unittest from test import support diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index eebdd255b8..0df1fead30 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import unittest import os diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py index 965e0f4bd2..c0f20f5502 100644 --- a/Lib/test/test_urllib2_localnet.py +++ b/Lib/test/test_urllib2_localnet.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import email import threading diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py index 70b4cfa746..b93319438e 100644 --- a/Lib/test/test_urllib2net.py +++ b/Lib/test/test_urllib2net.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import unittest from test import support diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py index 221b698527..f324be9896 100644 --- a/Lib/test/test_urllibnet.py +++ b/Lib/test/test_urllibnet.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import unittest from test import support diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py index 1658411845..ca4eaa5214 100644 --- a/Lib/test/test_urlparse.py +++ b/Lib/test/test_urlparse.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 from test import support import unittest diff --git a/Lib/test/test_userstring.py b/Lib/test/test_userstring.py index 05381384bf..7a8b9323f8 100755 --- a/Lib/test/test_userstring.py +++ b/Lib/test/test_userstring.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # UserString is a wrapper around the native builtin string type. # UserString instances should behave similar to builtin string objects. diff --git a/Lib/test/test_with.py b/Lib/test/test_with.py index 640f31cb09..74b5f191f6 100644 --- a/Lib/test/test_with.py +++ b/Lib/test/test_with.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Unit tests for the with statement specified in PEP 343.""" diff --git a/Lib/test/test_xmlrpc_net.py b/Lib/test/test_xmlrpc_net.py index c531b62227..493e3639ec 100644 --- a/Lib/test/test_xmlrpc_net.py +++ b/Lib/test/test_xmlrpc_net.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import collections import errno diff --git a/Lib/timeit.py b/Lib/timeit.py index 7b9b72c82e..63d94ca157 100644 --- a/Lib/timeit.py +++ b/Lib/timeit.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Tool for measuring execution time of small code snippets. diff --git a/Lib/token.py b/Lib/token.py index da4d29b326..a48bf3c292 100755 --- a/Lib/token.py +++ b/Lib/token.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Token constants (from "token.h").""" diff --git a/Lib/trace.py b/Lib/trace.py index e6316b6919..9d91fe8de1 100644 --- a/Lib/trace.py +++ b/Lib/trace.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # portions copyright 2001, Autonomous Zones Industries, Inc., all rights... # err... reserved and offered to the public under the terms of the @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Copyright 1994 by Lance Ellinghouse # Cathedral City, California Republic, United States of America. diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index aee797d399..72ba1ac5cc 100644 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Interfaces for launching and remotely controlling Web browsers.""" # Maintained by Georg Brandl. diff --git a/Python/makeopcodetargets.py b/Python/makeopcodetargets.py index a85ac52151..7180e9aa77 100755 --- a/Python/makeopcodetargets.py +++ b/Python/makeopcodetargets.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Generate C code for the jump table of the threaded code interpreter (for compilers supporting computed gotos or "labels-as-values", such as gcc). """ diff --git a/Tools/faqwiz/faqw.py b/Tools/faqwiz/faqw.py index d972f61e05..01536c06b2 100755 --- a/Tools/faqwiz/faqw.py +++ b/Tools/faqwiz/faqw.py @@ -1,4 +1,4 @@ -#! /usr/local/bin/python +#!/usr/bin/env python3 """FAQ wizard bootstrap.""" diff --git a/Tools/freeze/freeze.py b/Tools/freeze/freeze.py index a7673c9ce0..2d8127acea 100755 --- a/Tools/freeze/freeze.py +++ b/Tools/freeze/freeze.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Freeze a Python script into a binary. diff --git a/Tools/i18n/makelocalealias.py b/Tools/i18n/makelocalealias.py index 45876c1d0d..2a0e4c917f 100644 --- a/Tools/i18n/makelocalealias.py +++ b/Tools/i18n/makelocalealias.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Convert the X11 locale.alias file into a mapping dictionary suitable for locale.py. diff --git a/Tools/i18n/msgfmt.py b/Tools/i18n/msgfmt.py index 860e4eaf34..f481c882bc 100755 --- a/Tools/i18n/msgfmt.py +++ b/Tools/i18n/msgfmt.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # -*- coding: iso-8859-1 -*- # Written by Martin v. Löwis <loewis@informatik.hu-berlin.de> diff --git a/Tools/i18n/pygettext.py b/Tools/i18n/pygettext.py index d4ea59763d..67a960f4f8 100755 --- a/Tools/i18n/pygettext.py +++ b/Tools/i18n/pygettext.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # -*- coding: iso-8859-1 -*- # Originally written by Barry Warsaw <barry@zope.com> # diff --git a/Tools/modulator/Tkextra.py b/Tools/modulator/Tkextra.py index b1051aacff..e969ddef24 100755 --- a/Tools/modulator/Tkextra.py +++ b/Tools/modulator/Tkextra.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # A Python function that generates dialog boxes with a text message, # optional bitmap, and any number of buttons. diff --git a/Tools/modulator/modulator.py b/Tools/modulator/modulator.py index d7196493d9..76a72247f6 100755 --- a/Tools/modulator/modulator.py +++ b/Tools/modulator/modulator.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # # Modulator - Generate skeleton modules. # diff --git a/Tools/scripts/byteyears.py b/Tools/scripts/byteyears.py index f486d26795..490b37f0bf 100755 --- a/Tools/scripts/byteyears.py +++ b/Tools/scripts/byteyears.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Print the product of age and size of each file, in suitable units. # diff --git a/Tools/scripts/checkappend.py b/Tools/scripts/checkappend.py index 4c74ee5769..caa85db3cf 100755 --- a/Tools/scripts/checkappend.py +++ b/Tools/scripts/checkappend.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Released to the public domain, by Tim Peters, 28 February 2000. diff --git a/Tools/scripts/checkpyc.py b/Tools/scripts/checkpyc.py index 2e8fd5a832..2dc948a0be 100755 --- a/Tools/scripts/checkpyc.py +++ b/Tools/scripts/checkpyc.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Check that all ".pyc" files exist and are up-to-date # Uses module 'os' diff --git a/Tools/scripts/classfix.py b/Tools/scripts/classfix.py index 0cd1e4955f..971d1bd2e7 100755 --- a/Tools/scripts/classfix.py +++ b/Tools/scripts/classfix.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # This script is obsolete -- it is kept for historical purposes only. # diff --git a/Tools/scripts/cleanfuture.py b/Tools/scripts/cleanfuture.py index e6c8c8c670..b48ab60dd6 100644 --- a/Tools/scripts/cleanfuture.py +++ b/Tools/scripts/cleanfuture.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """cleanfuture [-d][-r][-v] path ... diff --git a/Tools/scripts/combinerefs.py b/Tools/scripts/combinerefs.py index 68704dd7b9..e10e49ad7c 100644 --- a/Tools/scripts/combinerefs.py +++ b/Tools/scripts/combinerefs.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """ combinerefs path diff --git a/Tools/scripts/copytime.py b/Tools/scripts/copytime.py index ba4a267d6f..e0220b5443 100755 --- a/Tools/scripts/copytime.py +++ b/Tools/scripts/copytime.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Copy one file's atime and mtime to another diff --git a/Tools/scripts/crlf.py b/Tools/scripts/crlf.py index 3dfa131ed7..0622282f99 100755 --- a/Tools/scripts/crlf.py +++ b/Tools/scripts/crlf.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 "Replace CRLF with LF in argument files. Print names of changed files." import sys, os diff --git a/Tools/scripts/cvsfiles.py b/Tools/scripts/cvsfiles.py index 9e65dc803d..0fc13bbe04 100755 --- a/Tools/scripts/cvsfiles.py +++ b/Tools/scripts/cvsfiles.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Print a list of files that are mentioned in CVS directories. diff --git a/Tools/scripts/db2pickle.py b/Tools/scripts/db2pickle.py index 9dd8bd3b72..a5532a8f3a 100644 --- a/Tools/scripts/db2pickle.py +++ b/Tools/scripts/db2pickle.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Synopsis: %(prog)s [-h|-g|-b|-r|-a] dbfile [ picklefile ] diff --git a/Tools/scripts/dutree.py b/Tools/scripts/dutree.py index dbf4f1aa6c..6b4361ac61 100755 --- a/Tools/scripts/dutree.py +++ b/Tools/scripts/dutree.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Format du output in a tree shape import os, sys, errno diff --git a/Tools/scripts/eptags.py b/Tools/scripts/eptags.py index 8d35dfb31e..671ff11e65 100755 --- a/Tools/scripts/eptags.py +++ b/Tools/scripts/eptags.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Create a TAGS file for Python programs, usable with GNU Emacs. usage: eptags pyfiles... diff --git a/Tools/scripts/find_recursionlimit.py b/Tools/scripts/find_recursionlimit.py index 2e202bec64..b299bf502a 100644 --- a/Tools/scripts/find_recursionlimit.py +++ b/Tools/scripts/find_recursionlimit.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Find the maximum recursion limit that prevents interpreter termination. This script finds the maximum safe recursion limit on a particular diff --git a/Tools/scripts/finddiv.py b/Tools/scripts/finddiv.py index 558791fcc0..f24a702966 100755 --- a/Tools/scripts/finddiv.py +++ b/Tools/scripts/finddiv.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """finddiv - a grep-like tool that looks for division operators. diff --git a/Tools/scripts/findlinksto.py b/Tools/scripts/findlinksto.py index d3da7e4e11..b4c09ef1ce 100755 --- a/Tools/scripts/findlinksto.py +++ b/Tools/scripts/findlinksto.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # findlinksto # diff --git a/Tools/scripts/findnocoding.py b/Tools/scripts/findnocoding.py index 78fc8efeba..77607ce137 100755 --- a/Tools/scripts/findnocoding.py +++ b/Tools/scripts/findnocoding.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """List all those Python files that require a coding directive diff --git a/Tools/scripts/fixcid.py b/Tools/scripts/fixcid.py index c9d3a295f2..95f7863b7c 100755 --- a/Tools/scripts/fixcid.py +++ b/Tools/scripts/fixcid.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Perform massive identifier substitution on C source files. # This actually tokenizes the files (to some extent) so it can diff --git a/Tools/scripts/fixdiv.py b/Tools/scripts/fixdiv.py index 8b15cc6595..4ecbea15e8 100755 --- a/Tools/scripts/fixdiv.py +++ b/Tools/scripts/fixdiv.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """fixdiv - tool to fix division operators. diff --git a/Tools/scripts/fixheader.py b/Tools/scripts/fixheader.py index 1208031357..ec840575b2 100755 --- a/Tools/scripts/fixheader.py +++ b/Tools/scripts/fixheader.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Add some standard cpp magic to a header file diff --git a/Tools/scripts/fixnotice.py b/Tools/scripts/fixnotice.py index d35a339af5..aac8697708 100755 --- a/Tools/scripts/fixnotice.py +++ b/Tools/scripts/fixnotice.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """(Ostensibly) fix copyright notices in files. diff --git a/Tools/scripts/fixps.py b/Tools/scripts/fixps.py index fd2ca71496..b002261206 100755 --- a/Tools/scripts/fixps.py +++ b/Tools/scripts/fixps.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Fix Python script(s) to reference the interpreter via /usr/bin/env python. # Warning: this overwrites the file without making a backup. diff --git a/Tools/scripts/ftpmirror.py b/Tools/scripts/ftpmirror.py index b79db1ac5c..9e8be1daf8 100755 --- a/Tools/scripts/ftpmirror.py +++ b/Tools/scripts/ftpmirror.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Mirror a remote ftp subtree into a local directory tree. diff --git a/Tools/scripts/google.py b/Tools/scripts/google.py index 6219c2d4bc..12152bb5f8 100755 --- a/Tools/scripts/google.py +++ b/Tools/scripts/google.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import sys, webbrowser diff --git a/Tools/scripts/gprof2html.py b/Tools/scripts/gprof2html.py index cb01c2ce68..f3c720299a 100755 --- a/Tools/scripts/gprof2html.py +++ b/Tools/scripts/gprof2html.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python2.3 +#! /usr/bin/env python32.3 """Transform gprof(1) output into useful HTML.""" diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py index 697e7fecdd..f3c80bda9c 100755 --- a/Tools/scripts/h2py.py +++ b/Tools/scripts/h2py.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Read #define's and translate to Python code. # Handle #include statements. diff --git a/Tools/scripts/ifdef.py b/Tools/scripts/ifdef.py index 2ed7a6667b..46167ad843 100755 --- a/Tools/scripts/ifdef.py +++ b/Tools/scripts/ifdef.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Selectively preprocess #ifdef / #ifndef statements. # Usage: diff --git a/Tools/scripts/lfcr.py b/Tools/scripts/lfcr.py index 1b9a5b7d1f..d0940223c7 100755 --- a/Tools/scripts/lfcr.py +++ b/Tools/scripts/lfcr.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 "Replace LF with CRLF in argument files. Print names of changed files." diff --git a/Tools/scripts/linktree.py b/Tools/scripts/linktree.py index 748b0424bb..982f4800ba 100755 --- a/Tools/scripts/linktree.py +++ b/Tools/scripts/linktree.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # linktree # diff --git a/Tools/scripts/lll.py b/Tools/scripts/lll.py index 5ee1504db5..aa4e55091e 100755 --- a/Tools/scripts/lll.py +++ b/Tools/scripts/lll.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Find symbolic links and show where they point to. # Arguments are directories to search; default is current directory. diff --git a/Tools/scripts/logmerge.py b/Tools/scripts/logmerge.py index 06750b0c2b..b7245f4836 100755 --- a/Tools/scripts/logmerge.py +++ b/Tools/scripts/logmerge.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Consolidate a bunch of CVS or RCS logs read from stdin. diff --git a/Tools/scripts/md5sum.py b/Tools/scripts/md5sum.py index 140c0b3e1a..743da72aa8 100644 --- a/Tools/scripts/md5sum.py +++ b/Tools/scripts/md5sum.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Python utility to print MD5 checksums of argument files. """ diff --git a/Tools/scripts/methfix.py b/Tools/scripts/methfix.py index f5fe7cd6ec..030e1c99d8 100755 --- a/Tools/scripts/methfix.py +++ b/Tools/scripts/methfix.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Fix Python source files to avoid using # def method(self, (arg1, ..., argn)): diff --git a/Tools/scripts/mkreal.py b/Tools/scripts/mkreal.py index 8bc2ec1956..b21909e691 100755 --- a/Tools/scripts/mkreal.py +++ b/Tools/scripts/mkreal.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # mkreal # diff --git a/Tools/scripts/ndiff.py b/Tools/scripts/ndiff.py index c60c8a83ec..2422091dcc 100755 --- a/Tools/scripts/ndiff.py +++ b/Tools/scripts/ndiff.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Module ndiff version 1.7.0 # Released to the public domain 08-Dec-2000, diff --git a/Tools/scripts/nm2def.py b/Tools/scripts/nm2def.py index 9dfb99143f..8f07559e21 100755 --- a/Tools/scripts/nm2def.py +++ b/Tools/scripts/nm2def.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """nm2def.py Helpers to extract symbols from Unix libs and auto-generate diff --git a/Tools/scripts/objgraph.py b/Tools/scripts/objgraph.py index 0975a3bbcd..1e1fce07dd 100755 --- a/Tools/scripts/objgraph.py +++ b/Tools/scripts/objgraph.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # objgraph # diff --git a/Tools/scripts/parseentities.py b/Tools/scripts/parseentities.py index 8d93167ed8..5b0f1c6741 100755 --- a/Tools/scripts/parseentities.py +++ b/Tools/scripts/parseentities.py @@ -1,4 +1,4 @@ -#!/usr/local/bin/python +#!/usr/bin/env python3 """ Utility for parsing HTML entity definitions available from: http://www.w3.org/ as e.g. diff --git a/Tools/scripts/pdeps.py b/Tools/scripts/pdeps.py index 5c5a05b9ad..938f31c164 100755 --- a/Tools/scripts/pdeps.py +++ b/Tools/scripts/pdeps.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # pdeps # diff --git a/Tools/scripts/pickle2db.py b/Tools/scripts/pickle2db.py index a43ffae448..b5b6571863 100644 --- a/Tools/scripts/pickle2db.py +++ b/Tools/scripts/pickle2db.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Synopsis: %(prog)s [-h|-b|-g|-r|-a|-d] [ picklefile ] dbfile diff --git a/Tools/scripts/pindent.py b/Tools/scripts/pindent.py index f80a8b7e23..15b6399f79 100755 --- a/Tools/scripts/pindent.py +++ b/Tools/scripts/pindent.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # This file contains a class and a main program that perform three # related (though complimentary) formatting operations on Python diff --git a/Tools/scripts/ptags.py b/Tools/scripts/ptags.py index ac01356076..ca643b3494 100755 --- a/Tools/scripts/ptags.py +++ b/Tools/scripts/ptags.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # ptags # diff --git a/Tools/scripts/pysource.py b/Tools/scripts/pysource.py index 05c2b8667f..048131e243 100644 --- a/Tools/scripts/pysource.py +++ b/Tools/scripts/pysource.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """\ List python source files. diff --git a/Tools/scripts/reindent-rst.py b/Tools/scripts/reindent-rst.py index 55b99ebaba..246af3ef81 100755 --- a/Tools/scripts/reindent-rst.py +++ b/Tools/scripts/reindent-rst.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Make a reST file compliant to our pre-commit hook. # Currently just remove trailing whitespace. diff --git a/Tools/scripts/reindent.py b/Tools/scripts/reindent.py index 8557b5debd..4f47b7a4d8 100755 --- a/Tools/scripts/reindent.py +++ b/Tools/scripts/reindent.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Released to the public domain, by Tim Peters, 03 October 2000. diff --git a/Tools/scripts/rgrep.py b/Tools/scripts/rgrep.py index 12d736e2a1..eee6a07012 100755 --- a/Tools/scripts/rgrep.py +++ b/Tools/scripts/rgrep.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Reverse grep. diff --git a/Tools/scripts/serve.py b/Tools/scripts/serve.py index 61de63d195..e4074c1afd 100755 --- a/Tools/scripts/serve.py +++ b/Tools/scripts/serve.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Small wsgiref based web server. Takes a path to serve from and an optional port number (defaults to 8000), then tries to serve files. diff --git a/Tools/scripts/suff.py b/Tools/scripts/suff.py index 462ec32183..8e22a7ea76 100755 --- a/Tools/scripts/suff.py +++ b/Tools/scripts/suff.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # suff # diff --git a/Tools/scripts/svneol.py b/Tools/scripts/svneol.py index 9357c7ed8d..80616a6aa1 100644 --- a/Tools/scripts/svneol.py +++ b/Tools/scripts/svneol.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """ SVN helper script. diff --git a/Tools/scripts/texi2html.py b/Tools/scripts/texi2html.py index 86229f2ad3..af2147a76b 100755 --- a/Tools/scripts/texi2html.py +++ b/Tools/scripts/texi2html.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Convert GNU texinfo files into HTML, one file per node. # Based on Texinfo 2.14. diff --git a/Tools/scripts/treesync.py b/Tools/scripts/treesync.py index 8643ee73ba..b2649c474e 100755 --- a/Tools/scripts/treesync.py +++ b/Tools/scripts/treesync.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Script to synchronize two source trees. diff --git a/Tools/scripts/untabify.py b/Tools/scripts/untabify.py index 1a186a3295..f21b7c84ab 100755 --- a/Tools/scripts/untabify.py +++ b/Tools/scripts/untabify.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 "Replace tabs with spaces in argument files. Print names of changed files." diff --git a/Tools/scripts/which.py b/Tools/scripts/which.py index a9f4907812..4fc37a027c 100755 --- a/Tools/scripts/which.py +++ b/Tools/scripts/which.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Variant of "which". # On stderr, near and total misses are reported. diff --git a/Tools/scripts/xxci.py b/Tools/scripts/xxci.py index 8cffc9e11b..228f0c0ea5 100755 --- a/Tools/scripts/xxci.py +++ b/Tools/scripts/xxci.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # xxci # diff --git a/Tools/ssl/get-remote-certificate.py b/Tools/ssl/get-remote-certificate.py index b63428abd4..67491c15ac 100644 --- a/Tools/ssl/get-remote-certificate.py +++ b/Tools/ssl/get-remote-certificate.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # fetch the certificate that the server(s) are providing in PEM form # diff --git a/Tools/unicode/comparecodecs.py b/Tools/unicode/comparecodecs.py index dade1ced22..0f5c1e24a3 100644 --- a/Tools/unicode/comparecodecs.py +++ b/Tools/unicode/comparecodecs.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Compare the output of two codecs. diff --git a/Tools/webchecker/wcgui.py b/Tools/webchecker/wcgui.py index 4ce613aff8..88d8f5626d 100755 --- a/Tools/webchecker/wcgui.py +++ b/Tools/webchecker/wcgui.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """GUI interface to webchecker. diff --git a/Tools/webchecker/webchecker.py b/Tools/webchecker/webchecker.py index 651cf85aa0..7c3124c429 100755 --- a/Tools/webchecker/webchecker.py +++ b/Tools/webchecker/webchecker.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # Original code by Guido van Rossum; extensive changes by Sam Bayer, # including code to check URL fragments. diff --git a/Tools/webchecker/websucker.py b/Tools/webchecker/websucker.py index 3bbdec36da..8076af57d2 100755 --- a/Tools/webchecker/websucker.py +++ b/Tools/webchecker/websucker.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """A variant on webchecker that creates a mirror copy of a remote site.""" diff --git a/Tools/webchecker/wsgui.py b/Tools/webchecker/wsgui.py index b2223c401d..032523b2ea 100755 --- a/Tools/webchecker/wsgui.py +++ b/Tools/webchecker/wsgui.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Tkinter-based GUI for websucker. |