diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-07-18 06:25:50 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-07-18 06:25:50 (GMT) |
commit | 3d7d372ce326602b274f44338168688eeb907a3b (patch) | |
tree | 221b3b3ae862fe0b1d068efb97700b55bf0018cf /PC | |
parent | 182b5aca27d376b08a2904bed42b751496f932f3 (diff) | |
download | cpython-3d7d372ce326602b274f44338168688eeb907a3b.zip cpython-3d7d372ce326602b274f44338168688eeb907a3b.tar.gz cpython-3d7d372ce326602b274f44338168688eeb907a3b.tar.bz2 |
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 ef8ba7a..fd1b1e4 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()
|