diff options
| author | Tim Peters <tim.peters@gmail.com> | 2004-07-18 06:25:50 +0000 |
|---|---|---|
| committer | Tim Peters <tim.peters@gmail.com> | 2004-07-18 06:25:50 +0000 |
| commit | 47ea0e7679809003d4eaa8fb89309d83da281424 (patch) | |
| tree | 72b8378bf415a48498e0577fe0e345a1de78db76 /PC | |
| parent | c71fe97a2c07d09144fd634f442a8ad29c84e0c0 (diff) | |
| download | cpython-47ea0e7679809003d4eaa8fb89309d83da281424.tar.gz | |
Whitespace normalization, via reindent.py.
Diffstat (limited to 'PC')
| -rw-r--r-- | PC/testpy.py | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/PC/testpy.py b/PC/testpy.py index ef8ba7aef4..fd1b1e42f8 100644 --- a/PC/testpy.py +++ b/PC/testpy.py @@ -5,28 +5,28 @@ import sys # change this module too.
try:
- import string
+ import string
except:
- print """Could not import the standard "string" module.
-Please check your PYTHONPATH environment variable."""
- sys.exit(1)
+ print """Could not import the standard "string" module.
+ Please check your PYTHONPATH environment variable."""
+ sys.exit(1)
try:
- import regex_syntax
+ import regex_syntax
except:
- print """Could not import the standard "regex_syntax" module. If this is
-a PC, you should add the dos_8x3 directory to your PYTHONPATH."""
- sys.exit(1)
+ print """Could not import the standard "regex_syntax" module. If this is
+ a PC, you should add the dos_8x3 directory to your PYTHONPATH."""
+ sys.exit(1)
import os
for dir in sys.path:
- file = os.path.join(dir, "string.py")
- if os.path.isfile(file):
- test = os.path.join(dir, "test")
- if os.path.isdir(test):
- # Add the "test" directory to PYTHONPATH.
- sys.path = sys.path + [test]
+ file = os.path.join(dir, "string.py")
+ if os.path.isfile(file):
+ test = os.path.join(dir, "test")
+ if os.path.isdir(test):
+ # Add the "test" directory to PYTHONPATH.
+ sys.path = sys.path + [test]
-import regrtest # Standard Python tester.
+import regrtest # Standard Python tester.
regrtest.main()
|
