summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2005-12-25 23:18:31 (GMT)
committerTim Peters <tim.peters@gmail.com>2005-12-25 23:18:31 (GMT)
commit536cf99536bce562cfcb44a856fac1c84b9de4c3 (patch)
tree80cf0f425cfc703b228aad716ed66cd4a5080c03 /Tools
parent83a8c393b06d24b3c6b252b7614c34110c369c43 (diff)
downloadcpython-536cf99536bce562cfcb44a856fac1c84b9de4c3.zip
cpython-536cf99536bce562cfcb44a856fac1c84b9de4c3.tar.gz
cpython-536cf99536bce562cfcb44a856fac1c84b9de4c3.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/bgen/bgen/bgenGenerator.py4
-rw-r--r--Tools/bgen/bgen/bgenHeapBuffer.py11
-rwxr-xr-xTools/compiler/dumppyc.py2
-rw-r--r--Tools/unicode/gencodec.py6
4 files changed, 11 insertions, 12 deletions
diff --git a/Tools/bgen/bgen/bgenGenerator.py b/Tools/bgen/bgen/bgenGenerator.py
index 7b54579..3da3958 100644
--- a/Tools/bgen/bgen/bgenGenerator.py
+++ b/Tools/bgen/bgen/bgenGenerator.py
@@ -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)
diff --git a/Tools/bgen/bgen/bgenHeapBuffer.py b/Tools/bgen/bgen/bgenHeapBuffer.py
index d677f29..3d440e6 100644
--- a/Tools/bgen/bgen/bgenHeapBuffer.py
+++ b/Tools/bgen/bgen/bgenHeapBuffer.py
@@ -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)
-
diff --git a/Tools/compiler/dumppyc.py b/Tools/compiler/dumppyc.py
index 8cfe3b1..1258cce 100755
--- a/Tools/compiler/dumppyc.py
+++ b/Tools/compiler/dumppyc.py
@@ -43,5 +43,5 @@ if __name__ == "__main__":
buf = open(filename).read()
co = compile(buf, filename, "exec")
walk(co)
- else:
+ else:
load(filename, codename)
diff --git a/Tools/unicode/gencodec.py b/Tools/unicode/gencodec.py
index e7430b3..9b4ae16 100644
--- a/Tools/unicode/gencodec.py
+++ b/Tools/unicode/gencodec.py
@@ -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):