]>
Commit | Line | Data |
---|---|---|
32d83abb | 1 | --- Python-3.0.1/Lib/distutils/tests/test_build_scripts.py.wiget 2004-08-26 07:44:02.000000000 +0200 |
ce5ce022 | 2 | +++ Python-3.0.1/Lib/distutils/tests/test_build_scripts.py 2009-03-14 18:12:32.000000000 +0100 |
32d83abb AF |
3 | @@ -58,7 +58,7 @@ class BuildScriptsTestCase(support.Tempd |
4 | "pass\n")) | |
5 | expected.append("script2.py") | |
6 | self.write_script(dir, "script2.py", | |
7 | - ("#!/usr/bin/python\n" | |
ce5ce022 | 8 | + ("#!/usr/bin/python3\n" |
32d83abb AF |
9 | "# bogus script w/ Python sh-bang\n" |
10 | "pass\n")) | |
11 | expected.append("shell.sh") | |
12 | --- Python-3.0.1/Lib/distutils/tests/test_install_scripts.py.wiget 2004-08-03 20:53:07.000000000 +0200 | |
ce5ce022 | 13 | +++ Python-3.0.1/Lib/distutils/tests/test_install_scripts.py 2009-03-14 18:12:32.000000000 +0100 |
32d83abb AF |
14 | @@ -48,7 +48,7 @@ class InstallScriptsTestCase(support.Tem |
15 | write_script("script1.py", ("#! /usr/bin/env python2.3\n" | |
16 | "# bogus script w/ Python sh-bang\n" | |
17 | "pass\n")) | |
18 | - write_script("script2.py", ("#!/usr/bin/python\n" | |
ce5ce022 | 19 | + write_script("script2.py", ("#!/usr/bin/python3\n" |
32d83abb AF |
20 | "# bogus script w/ Python sh-bang\n" |
21 | "pass\n")) | |
22 | write_script("shell.sh", ("#!/bin/sh\n" | |
32d83abb | 23 | --- Python-3.0.1/Lib/cgi.py.wiget 2008-12-04 21:11:57.000000000 +0100 |
ce5ce022 | 24 | +++ Python-3.0.1/Lib/cgi.py 2009-03-14 18:12:32.000000000 +0100 |
32d83abb AF |
25 | @@ -1,6 +1,6 @@ |
26 | -#! /usr/local/bin/python | |
ce5ce022 | 27 | +#! /usr/bin/python3 |
e684db95 | 28 | |
32d83abb | 29 | -# NOTE: the above "/usr/local/bin/python" is NOT a mistake. It is |
ce5ce022 | 30 | +# NOTE: the above "/usr/bin/python3" is NOT a mistake. It is |
32d83abb AF |
31 | # intentionally NOT "/usr/bin/env python". On many systems |
32 | # (e.g. Solaris), /usr/local/bin is not in $PATH as passed to CGI | |
33 | # scripts, and /usr/local/bin is the default directory where Python is | |
32d83abb | 34 | --- Python-3.0.1/Tools/pybench/pybench.py.wiget 2009-02-07 18:28:46.000000000 +0100 |
ce5ce022 | 35 | +++ Python-3.0.1/Tools/pybench/pybench.py 2009-03-14 18:12:32.000000000 +0100 |
e3304645 | 36 | @@ -1,4 +1,4 @@ |
32d83abb | 37 | -#!/usr/local/bin/python -O |
ce5ce022 | 38 | +#!/usr/bin/python3 -O |
32d83abb AF |
39 | |
40 | """ A Python Benchmark Suite | |
e3304645 | 41 | |
32d83abb | 42 | --- Python-3.0.1/Tools/scripts/fixps.py.wiget 2007-08-03 19:06:41.000000000 +0200 |
ce5ce022 | 43 | +++ Python-3.0.1/Tools/scripts/fixps.py 2009-03-14 18:12:32.000000000 +0100 |
32d83abb AF |
44 | @@ -15,13 +15,13 @@ def main(): |
45 | print(filename, ': can\'t open :', msg) | |
46 | continue | |
47 | line = f.readline() | |
48 | - if not re.match('^#! */usr/local/bin/python', line): | |
49 | - print(filename, ': not a /usr/local/bin/python script') | |
ce5ce022 AF |
50 | + if not re.match('^#! */usr/bin/python3', line): |
51 | + print(filename, ': not a /usr/bin/python3 script') | |
32d83abb AF |
52 | f.close() |
53 | continue | |
54 | rest = f.read() | |
55 | f.close() | |
56 | - line = re.sub('/usr/local/bin/python', | |
ce5ce022 | 57 | + line = re.sub('/usr/bin/python3', |
32d83abb AF |
58 | '/usr/bin/env python', line) |
59 | print(filename, ':', repr(line)) | |
60 | f = open(filename, "w") |