summaryrefslogtreecommitdiffstats
path: root/Tools/bgen
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2005-07-17 23:16:17 (GMT)
committerTim Peters <tim.peters@gmail.com>2005-07-17 23:16:17 (GMT)
commitf5f32b47128763a1f782782bd5a1a125b6d8b28b (patch)
tree101943572734eccd843559bdc6520d5b2ca0a192 /Tools/bgen
parentc48a740887c80a4e6686486d62171f9efe64921c (diff)
downloadcpython-f5f32b47128763a1f782782bd5a1a125b6d8b28b.zip
cpython-f5f32b47128763a1f782782bd5a1a125b6d8b28b.tar.gz
cpython-f5f32b47128763a1f782782bd5a1a125b6d8b28b.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Tools/bgen')
-rw-r--r--Tools/bgen/bgen/scantools.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/bgen/bgen/scantools.py b/Tools/bgen/bgen/scantools.py
index aea43ea..d809a65 100644
--- a/Tools/bgen/bgen/scantools.py
+++ b/Tools/bgen/bgen/scantools.py
@@ -374,7 +374,7 @@ if missing: raise "Missing Types"
tmp = self.scanmine and self.scanfile
self.scanfile = None
if tmp: tmp.close()
-
+
def closehtml(self):
if self.htmlfile: self.htmlfile.write(ENDHTMLREPORT)
tmp = self.htmlmine and self.htmlfile
@@ -415,7 +415,7 @@ if missing: raise "Missing Types"
self.htmlfile = file
self.htmlmine = mine
self.htmlfile.write(BEGINHTMLREPORT)
-
+
def openoutput(self, filename):
try:
file = open(filename, 'w')
@@ -728,10 +728,10 @@ if missing: raise "Missing Types"
classname, listname = self.destination(tp, name, arglist, modifiers)
else:
classname, listname = self.destination(tp, name, arglist)
- if not classname or not listname:
+ if not classname or not listname:
self.htmlreport("*** no output generated: self.destination() returned None", klass="blacklisted")
return
- if not self.specfile:
+ if not self.specfile:
self.htmlreport("*** no output generated: no output file specified", klass="blacklisted")
return
self.specfile.write("f = %s(%s, %r,\n" % (classname, tp, name))
@@ -800,7 +800,7 @@ if missing: raise "Missing Types"
if not line or line[-1] != '\n':
oline += '\n'
self.htmlfile.write(oline)
-
+
class Scanner_PreUH3(Scanner):
"""Scanner for Universal Headers before release 3"""
def initpatterns(self):