convert shebang lines: python -> python3

This commit is contained in:
Benjamin Peterson 2010-03-11 22:53:45 +00:00
parent e8c1f95090
commit 90f5ba538b
212 changed files with 212 additions and 212 deletions

View File

@ -1,4 +1,4 @@
#!/usr/local/bin/python #!/usr/bin/env python3
"""CGI test 1 - check server setup.""" """CGI test 1 - check server setup."""

View File

@ -1,4 +1,4 @@
#!/usr/local/bin/python #!/usr/bin/env python3
"""CGI test 2 - basic use of cgi module.""" """CGI test 2 - basic use of cgi module."""

View File

@ -1,4 +1,4 @@
#!/usr/local/bin/python #!/usr/bin/env python3
"""CGI test 3 (persistent data).""" """CGI test 3 (persistent data)."""

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# 1) Regular Expressions Test # 1) Regular Expressions Test
# #

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# 2) Sorting Test # 2) Sorting Test
# #

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# 3) System Test # 3) System Test
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# life.py -- A curses-based version of Conway's Game of Life. # life.py -- A curses-based version of Conway's Game of Life.
# Contributed by AMK # Contributed by AMK
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# $Id$ # $Id$
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# $Id$ # $Id$
# #

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""repeat [-i SECONDS] <shell-command> """repeat [-i SECONDS] <shell-command>

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# $Id$ # $Id$
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# The above line should get replaced with the path to the Python # The above line should get replaced with the path to the Python
# interpreter; the block below should get 2to3-converted. # interpreter; the block below should get 2to3-converted.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# (Force the script to use the latest build.) # (Force the script to use the latest build.)
# #
# test_parser.py # test_parser.py

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""RCS Proxy. """RCS Proxy.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""Turn a pile of RCS log output into ChangeLog file entries. """Turn a pile of RCS log output into ChangeLog file entries.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""Remote CVS -- command line interface""" """Remote CVS -- command line interface"""

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"Remote RCS -- command line interface" "Remote RCS -- command line interface"

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""A multi-threaded telnet-like server that gives a Python prompt. """A multi-threaded telnet-like server that gives a Python prompt.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# By GvR, demystified after a version by Fredrik Lundh. # By GvR, demystified after a version by Fredrik Lundh.

View File

@ -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., # Fix Python source files to use the new equality test operator, i.e.,
# if x = y: ... # if x = y: ...

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Factorize numbers. # Factorize numbers.
# The algorithm is not efficient, but easy to understand. # The algorithm is not efficient, but easy to understand.

View File

@ -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 For each argument on the command line, look for it in the set of all Unicode

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Print From and Subject of messages in $MAIL. # Print From and Subject of messages in $MAIL.
# Extension to multiple mailboxes and other bells & whistles are left # Extension to multiple mailboxes and other bells & whistles are left

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Watch line printer queue(s). # Watch line printer queue(s).
# Intended for BSD 4.3 lpq. # Intended for BSD 4.3 lpq.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Like mkdir, but also make intermediate directories if necessary. # Like mkdir, but also make intermediate directories if necessary.
# It is not an error if the given directory already exists (as long # It is not an error if the given directory already exists (as long

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
class Markov: class Markov:
def __init__(self, histsize, choice): def __init__(self, histsize, choice):

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Convert MH directories (1 message per file) or MMDF mailboxes (4x^A # Convert MH directories (1 message per file) or MMDF mailboxes (4x^A
# delimited) to unix mailbox (From ... delimited) on stdout. # delimited) to unix mailbox (From ... delimited) on stdout.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# DAH should be three DOTs. # DAH should be three DOTs.
# Space between DOTs and DAHs should be one DOT. # Space between DOTs and DAHs should be one DOT.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
####################################################################### #######################################################################
# Newslist $Revision$ # Newslist $Revision$
# #

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Print digits of pi forever. # Print digits of pi forever.
# #

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Emulate some Perl command line options. # Emulate some Perl command line options.
# Usage: pp [-a] [-c] [-d] [-e scriptline] [-F fieldsep] [-n] [-p] [file] ... # Usage: pp [-a] [-c] [-d] [-e scriptline] [-F fieldsep] [-n] [-p] [file] ...

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Print prime numbers in a given range # Print prime numbers in a given range

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""N queens problem. """N queens problem.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# script.py -- Make typescript of terminal session. # script.py -- Make typescript of terminal session.
# Usage: # Usage:

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Calculate your unbirthday count (see Alice in Wonderland). # Calculate your unbirthday count (see Alice in Wonderland).
# This is defined as the number of days from your birth until today # This is defined as the number of days from your birth until today

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Update a bunch of files according to a script. # Update a bunch of files according to a script.
# The input file contains lines of the form <filename>:<lineno>:<text>, # The input file contains lines of the form <filename>:<lineno>:<text>,

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Python implementation of an 'echo' tcp server: echo all data it receives. # Python implementation of an 'echo' tcp server: echo all data it receives.
# #

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Python interface to the Internet finger daemon. # Python interface to the Internet finger daemon.
# #

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# A simple gopher client. # A simple gopher client.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Send/receive UDP multicast packets. # Send/receive UDP multicast packets.
# Requires that your OS kernel supports IP multicast. # Requires that your OS kernel supports IP multicast.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Remote python client. # Remote python client.
# Execute Python commands remotely and send output back. # Execute Python commands remotely and send output back.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Remote python server. # Remote python server.
# Execute Python commands remotely and send output back. # Execute Python commands remotely and send output back.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Minimal interface to the Internet telnet protocol. # Minimal interface to the Internet telnet protocol.
# #

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Test network throughput. # Test network throughput.
# #

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Client and server for udp (datagram) echo. # Client and server for udp (datagram) echo.
# #

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# View a single MIME multipart message. # View a single MIME multipart message.
# Display each part as a box. # Display each part as a box.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
from tkinter import * from tkinter import *
from Canvas import Oval, Group, CanvasText from Canvas import Oval, Group, CanvasText

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# A Python function that generates dialog boxes with a text message, # A Python function that generates dialog boxes with a text message,
# optional bitmap, and any number of buttons. # optional bitmap, and any number of buttons.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Simulate "electrons" migrating across the screen. # Simulate "electrons" migrating across the screen.
# An optional bitmap file in can be in the background. # An optional bitmap file in can be in the background.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Tkinter interface to Linux `kill' command. # Tkinter interface to Linux `kill' command.
from tkinter import * from tkinter import *

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Scan MH folder, display results in window # Scan MH folder, display results in window

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""Play with the new Tk 8.0 toplevel menu option.""" """Play with the new Tk 8.0 toplevel menu option."""

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# A Python program implementing rmt, an application for remotely # A Python program implementing rmt, an application for remotely
# controlling other Tk applications. # controlling other Tk applications.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""Solitaire game, much like the one that comes with MS Windows. """Solitaire game, much like the one that comes with MS Windows.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""Sorting algorithms visualizer using Tkinter. """Sorting algorithms visualizer using Tkinter.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Tkinter interface to SYSV `ps' and `kill' commands. # Tkinter interface to SYSV `ps' and `kill' commands.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Tk man page browser -- currently only shows the Tcl/Tk man pages # Tk man page browser -- currently only shows the Tcl/Tk man pages

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
""" turtle-example-suite: """ turtle-example-suite:
tdemo-I_dont_like_tiltdemo.py tdemo-I_dont_like_tiltdemo.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
""" turtle-example-suite: """ turtle-example-suite:
tdemo_bytedesign.py tdemo_bytedesign.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
# -*- coding: cp1252 -*- # -*- coding: cp1252 -*-
""" turtle-example-suite: """ turtle-example-suite:

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
""" turtlegraphics-example-suite: """ turtlegraphics-example-suite:
tdemo_forest.py tdemo_forest.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
""" turtle-example-suite: """ turtle-example-suite:
tdemo_fractalCurves.py tdemo_fractalCurves.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
""" turtle-example-suite: """ turtle-example-suite:
xtx_lindenmayer_indian.py xtx_lindenmayer_indian.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
""" turtle-example-suite: """ turtle-example-suite:
tdemo_minimal_hanoi.py tdemo_minimal_hanoi.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
""" turtle-example-suite: """ turtle-example-suite:
tdemo_paint.py tdemo_paint.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
""" turtle-example-suite: """ turtle-example-suite:
tdemo_peace.py tdemo_peace.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
""" xturtle-example-suite: """ xturtle-example-suite:
xtx_kites_and_darts.py xtx_kites_and_darts.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
""" turtle-example-suite: """ turtle-example-suite:
tdemo_planets_and_moon.py tdemo_planets_and_moon.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
""" turtle-example-suite: """ turtle-example-suite:
tdemo_tree.py tdemo_tree.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
""" turtle-example-suite: """ turtle-example-suite:
tdemo_yinyang.py tdemo_yinyang.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
import sys import sys
import os import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
## DEMONSTRATES USE OF 2 CANVASES, SO CANNOT BE RUN IN DEMOVIEWER! ## DEMONSTRATES USE OF 2 CANVASES, SO CANNOT BE RUN IN DEMOVIEWER!
"""turtle example: Using TurtleScreen and RawTurtle """turtle example: Using TurtleScreen and RawTurtle
for drawing on two distinct canvases. for drawing on two distinct canvases.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Demo program for zlib; it compresses or decompresses files, but *doesn't* # Demo program for zlib; it compresses or decompresses files, but *doesn't*
# delete the original. This doesn't support all of gzip's options. # delete the original. This doesn't support all of gzip's options.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Takes an optional filename, defaulting to this file itself. # Takes an optional filename, defaulting to this file itself.
# Reads the file and compresses the content using level 1 and level 9 # Reads the file and compresses the content using level 1 and level 9

View File

@ -1,4 +1,4 @@
#! /usr/bin/python #!/usr/bin/env python3
import smtplib import smtplib

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
"""Send the contents of a directory as a MIME message.""" """Send the contents of a directory as a MIME message."""

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
"""Unpack a MIME message into a directory of files.""" """Unpack a MIME message into a directory of files."""

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Check for stylistic and formal issues in .rst and .py # Check for stylistic and formal issues in .rst and .py

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""RFC 3548: Base16, Base32, Base64 Data Encodings""" """RFC 3548: Base16, Base32, Base64 Data Encodings"""

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""Python interface for the 'lsprof' profiler. """Python interface for the 'lsprof' profiler.
Compatible with the 'profile' module. Compatible with the 'profile' module.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
""" """
Module difflib -- helpers for computing deltas between objects. Module difflib -- helpers for computing deltas between objects.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
#### ####

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
import os import os
import os.path import os.path

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""Keywords (from "graminit.c") """Keywords (from "graminit.c")

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""Token constants (from "token.h").""" """Token constants (from "token.h")."""

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Copyright 2006 Google, Inc. All Rights Reserved. # Copyright 2006 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement. # Licensed to PSF under a Contributor Agreement.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes.""" """Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes."""

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""A Python debugger.""" """A Python debugger."""

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
""" This module tries to retrieve as much platform-identifying data as """ This module tries to retrieve as much platform-identifying data as
possible. It makes this information available via function APIs. possible. It makes this information available via function APIs.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# #
# Class for profiling python code. rev 1.0 6/2/94 # Class for profiling python code. rev 1.0 6/2/94
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: latin-1 -*- # -*- coding: latin-1 -*-
"""Generate Python documentation in HTML or text for interactive use. """Generate Python documentation in HTML or text for interactive use.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""Conversions to/from quoted-printable transport encoding as per RFC 1521.""" """Conversions to/from quoted-printable transport encoding as per RFC 1521."""

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""An RFC 2821 smtp proxy. """An RFC 2821 smtp proxy.
Usage: %(program)s [options] [localhost:localport [remotehost:remoteport]] Usage: %(program)s [options] [localhost:localport [remotehost:remoteport]]

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
'''SMTP/ESMTP client class. '''SMTP/ESMTP client class.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""Non-terminal symbols of Python grammar (from "graminit.h").""" """Non-terminal symbols of Python grammar (from "graminit.h")."""

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
"""The Tab Nanny despises ambiguous indentation. She knows no mercy. """The Tab Nanny despises ambiguous indentation. She knows no mercy.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
#------------------------------------------------------------------- #-------------------------------------------------------------------
# tarfile.py # tarfile.py
#------------------------------------------------------------------- #-------------------------------------------------------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# No bug report AFAIK, mail on python-dev on 2006-01-10 # No bug report AFAIK, mail on python-dev on 2006-01-10

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# $Id: ncurses.py 36559 2004-07-18 05:56:09Z tim_one $ # $Id: ncurses.py 36559 2004-07-18 05:56:09Z tim_one $
# #

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
""" """
"PYSTONE" Benchmark Program "PYSTONE" Benchmark Program

Some files were not shown because too many files have changed in this diff Show More