Whitespace normalization, via reindent.py.

This commit is contained in:
Tim Peters 2004-07-18 06:16:08 +00:00
parent e6ddc8b20b
commit 182b5aca27
453 changed files with 31318 additions and 31452 deletions

View file

@ -88,7 +88,7 @@ class NodeInfo:
self.args = self.args.replace('*', '')
self.args = self.args.replace('!', '')
self.args = self.args.replace('&', '')
return d
def gen_source(self):
@ -158,7 +158,7 @@ class NodeInfo:
template = " nodes.%s(%sself.%s%s)"
for name in self.argnames:
if self.argprops[name] == P_NONE:
tmp = (" if self.%s is not None:"
tmp = (" if self.%s is not None:"
" nodes.append(self.%s)")
print >> buf, tmp % (name, name)
elif self.argprops[name] == P_NESTED:

View file

@ -39,7 +39,7 @@ def main():
filename + ".prof")
else:
compileFile(filename, DISPLAY)
except SyntaxError, err:
print err
if err.lineno is not None:

View file

@ -14,7 +14,7 @@ class MethodFinder:
Each visit method takes two arguments, the node and its current
scope. The scope is the name of the current class or None.
"""
def visitClass(self, node, scope=None):
self.visit(node.code, node.name)
@ -22,7 +22,7 @@ class MethodFinder:
if scope is not None:
print "%s.%s" % (scope, node.name)
self.visit(node.code, None)
def main(files):
mf = MethodFinder()
for file in files:
@ -34,5 +34,5 @@ def main(files):
if __name__ == "__main__":
import sys
main(sys.argv[1:])