[Python-checkins] r54300 - in sandbox/trunk/2to3: test.py tests/support.py
guido.van.rossum
python-checkins at python.org
Mon Mar 12 19:26:03 CET 2007
Author: guido.van.rossum
Date: Mon Mar 12 19:26:00 2007
New Revision: 54300
Modified:
sandbox/trunk/2to3/test.py (contents, props changed)
sandbox/trunk/2to3/tests/support.py
Log:
Make test.py executable. Clean up some whitespace.
Modified: sandbox/trunk/2to3/test.py
==============================================================================
--- sandbox/trunk/2to3/test.py (original)
+++ sandbox/trunk/2to3/test.py Mon Mar 12 19:26:00 2007
@@ -1,5 +1,9 @@
-"""Main test file for 2to3. Running "python test.py" will run all
-tests in tests/test_*.py."""
+#!/usr/bin/env python2.5
+
+"""Main test file for 2to3.
+
+Running "python test.py" will run all tests in tests/test_*.py.
+"""
# Author: Collin Winter
import tests
Modified: sandbox/trunk/2to3/tests/support.py
==============================================================================
--- sandbox/trunk/2to3/tests/support.py (original)
+++ sandbox/trunk/2to3/tests/support.py Mon Mar 12 19:26:00 2007
@@ -18,7 +18,7 @@
parent_dir = os.path.split(sys.path[0])[0]
sys.path = [parent_dir] + sys.path
-
+
skip_whitespace = re.compile(r"""\S""")
def reformat(string):
indent = re.search(skip_whitespace, string).start()
More information about the Python-checkins
mailing list