summaryrefslogtreecommitdiff
path: root/PC/testpy.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-07-18 06:25:50 +0000
committerTim Peters <tim.peters@gmail.com>2004-07-18 06:25:50 +0000
commit3d7d372ce326602b274f44338168688eeb907a3b (patch)
tree221b3b3ae862fe0b1d068efb97700b55bf0018cf /PC/testpy.py
parent182b5aca27d376b08a2904bed42b751496f932f3 (diff)
downloadcpython-git-3d7d372ce326602b274f44338168688eeb907a3b.tar.gz
Whitespace normalization, via reindent.py.
Diffstat (limited to 'PC/testpy.py')
-rw-r--r--PC/testpy.py30
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()