mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Whitespace normalization.
This commit is contained in:
parent
83a8c393b0
commit
536cf99536
82 changed files with 33875 additions and 33923 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -43,5 +43,5 @@ if __name__ == "__main__":
|
|||
buf = open(filename).read()
|
||||
co = compile(buf, filename, "exec")
|
||||
walk(co)
|
||||
else:
|
||||
else:
|
||||
load(filename, codename)
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue