Commit 0b7b4b8a authored by Jeremy Hylton's avatar Jeremy Hylton

satisfy the tabnanny

parent 9082cdd0
......@@ -34,7 +34,8 @@ def treat_file(file, outfp):
size = 0
while 1:
line = fp.readline()
if not line: break
if not line:
break
lineno = lineno + 1
m = matcher.search(line)
if m:
......
......@@ -150,7 +150,6 @@ class Ignore:
self._ignore[modulename] = 0
return 0
def run(trace, cmd):
import __main__
dict = __main__.__dict__
......@@ -330,8 +329,8 @@ def create_results_log(results, dirname = ".", show_missing = 1,
try:
lines = open(filename, 'r').readlines()
except IOError, err:
sys.stderr.write(
"%s: Could not open %s for reading because: %s - skipping\n" % \
sys.stderr.write("%s: Could not open %s for reading " \
"because: %s - skipping\n" % \
("trace", `filename`, err.strerror))
continue
......@@ -350,8 +349,8 @@ def create_results_log(results, dirname = ".", show_missing = 1,
outfile = open(listfilename, 'w')
except IOError, err:
sys.stderr.write(
'%s: Could not open %s for writing because: %s - skipping\n' %
("trace", `listfilename`, err.strerror))
'%s: Could not open %s for writing because: %s" \
"- skipping\n' % ("trace", `listfilename`, err.strerror))
continue
# If desired, get a list of the line numbers which represent
......@@ -396,8 +395,8 @@ def create_results_log(results, dirname = ".", show_missing = 1,
marshal.dump(results.modules,
open(os.path.join(dirname, "modules"), "w"))
except IOError, err:
sys.stderr.write("cannot save counts/modules files because %s" %
err.strerror)
sys.stderr.write("cannot save counts/modules " \
"files because %s" % err.strerror)
# There is a lot of code shared between these two classes even though
# it is straightforward to make a super class to share code. However,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment