Whitespace normalization.

This commit is contained in:
Tim Peters 2005-12-25 23:18:31 +00:00
parent 83a8c393b0
commit 536cf99536
82 changed files with 33875 additions and 33923 deletions

View file

@ -218,10 +218,10 @@ class FunctionGenerator(BaseFunctionGenerator):
def beginallowthreads(self):
pass
def endallowthreads(self):
pass
def callit(self):
args = ""
s = "%s%s(" % (self.getrvforcallit(), self.callname)

View file

@ -111,10 +111,10 @@ class VarVarHeapOutputBufferType(VarHeapOutputBufferType):
def passOutput(self, name):
return "%s__out__, %s__len__, &%s__len__" % (name, name, name)
class MallocHeapOutputBufferType(HeapOutputBufferType):
"""Output buffer allocated by the called function -- passed as (&buffer, &size).
Instantiate without parameters.
Call from Python without parameters.
"""
@ -124,7 +124,7 @@ class MallocHeapOutputBufferType(HeapOutputBufferType):
def getAuxDeclarations(self, name):
return []
def passOutput(self, name):
return "&%s__out__, &%s__len__" % (name, name)
@ -133,10 +133,9 @@ class MallocHeapOutputBufferType(HeapOutputBufferType):
def getargsArgs(self, name):
return None
def mkvalueFormat(self):
return "z#"
def cleanup(self, name):
Output("if( %s__out__ ) free(%s__out__);", name, name)

View file

@ -43,5 +43,5 @@ if __name__ == "__main__":
buf = open(filename).read()
co = compile(buf, filename, "exec")
walk(co)
else:
else:
load(filename, codename)

View file

@ -295,8 +295,8 @@ class Codec(codecs.Codec):
else:
l.append('''\
return codecs.charmap_decode(input,errors,decoding_map)''')
l.append('''
l.append('''
class StreamWriter(Codec,codecs.StreamWriter):
pass
@ -330,7 +330,7 @@ def getregentry():
# Final new-line
l.append('\n')
return '\n'.join(l)
def pymap(name,map,pyfile,comments=1):