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."""

View File

@ -1,4 +1,4 @@
#!/usr/local/bin/python
#!/usr/bin/env python3
"""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)."""

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# 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.
# Contributed by AMK
#

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# $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
# 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.)
#
# test_parser.py

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
"""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.

View File

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

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
"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.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# 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.,
# if x = y: ...

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# Factorize numbers.
# 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

View File

@ -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

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# Watch line printer queue(s).
# 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.
# 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:
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
# 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.
# 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$
#

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# 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.
# 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

View File

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

View File

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

View File

@ -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

View File

@ -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>,

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.
#

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# 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.
#

View File

@ -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.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# Remote python client.
# 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.
# 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.
#

View File

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

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# 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.
# Display each part as a box.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
from tkinter import *
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,
# 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.
# 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.
from tkinter import *

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# 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."""

View File

@ -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.

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.

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
"""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.

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
import sys
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!
"""turtle example: Using TurtleScreen and RawTurtle
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*
# 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.
# 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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""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."""

View File

@ -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

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
"""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.
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.

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.path

View File

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

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
"""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.
# 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."""

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
"""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
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
#

View File

@ -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.

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."""

View File

@ -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]]

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
'''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")."""

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
"""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
#-------------------------------------------------------------------

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

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 $
#

View File

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

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