summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/trace.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-01-17 08:48:39 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-01-17 08:48:39 (GMT)
commit70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7 (patch)
treecf47b67db3753288cfd9fa2adc45e7c5cd2f8741 /Tools/scripts/trace.py
parenta88854059309667092000da55d4d5a5804267e9f (diff)
downloadcpython-70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7.zip
cpython-70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7.tar.gz
cpython-70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Tools/scripts/trace.py')
-rw-r--r--Tools/scripts/trace.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/scripts/trace.py b/Tools/scripts/trace.py
index d8016b0..78715e0 100644
--- a/Tools/scripts/trace.py
+++ b/Tools/scripts/trace.py
@@ -261,7 +261,7 @@ def find_executable_linenos(filename):
# The only way I know to find line numbers is to look for the
# SET_LINENO instructions. Isn't there some way to get it from
# the AST?
-
+
return _find_LINENO(code)
### XXX because os.path.commonprefix seems broken by my way of thinking...
@@ -279,7 +279,7 @@ def commonprefix(dirs):
if i == 0: return ''
break
return os.sep.join(prefix)
-
+
def create_results_log(results, dirname = ".", show_missing = 1,
save_counts = 0):
import re
@@ -297,7 +297,7 @@ def create_results_log(results, dirname = ".", show_missing = 1,
results.update(results.__class__(counts, modules))
except IOError:
pass
-
+
# there are many places where this is insufficient, like a blank
# line embedded in a multiline string.
blank = re.compile(r'^\s*(#.*)?$')
@@ -307,7 +307,7 @@ def create_results_log(results, dirname = ".", show_missing = 1,
tfdir = tempfile.gettempdir()
for key in per_file.keys():
filename = key
-
+
# skip some "files" we don't care about...
if filename == "<string>":
continue
@@ -484,7 +484,7 @@ class Trace:
print '%s(%d): ??' % (modulename, lineno)
return self.trace
-
+
def _err_exit(msg):
sys.stderr.write("%s: %s\n" % (sys.argv[0], msg))