Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
Include python files in white-space sweep
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdphk committed May 12, 2011
1 parent 5a83d47 commit 4ef7a77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/libvcl/generate.py
Expand Up @@ -572,7 +572,7 @@ def emit_file(fo, fn):
w = 66 # Width of lines, after white space prefix
maxlen = 10240 # Max length of string literal

x = 0
x = 0
l = 0
fo.write("\n\t/* %s */\n\n" % fn)
for c in fc:
Expand Down Expand Up @@ -600,7 +600,7 @@ def emit_file(fo, fn):
fo.write(d + "\"\n")
x = 0
continue

fo.write(d)
x += len(d)
l += len(d)
Expand Down Expand Up @@ -663,7 +663,7 @@ def file_header(fo):
vcls.append(i[0])
for j in i[1]:
rets[j] = True

#######################################################################

fo = open(buildroot + "/include/vcl_returns.h", "w")
Expand Down Expand Up @@ -782,7 +782,7 @@ def restrict(fo, spec):
n += 1
fo.write(p + "VCL_MET_" + j.upper())
p = " | "

fo.write(",\n")

#######################################################################
Expand Down
4 changes: 2 additions & 2 deletions lib/libvmod_std/vmod.py
Expand Up @@ -196,7 +196,7 @@ def nextline():

while -1 == l.find(")"):
l1 = nextline()
if l1 == "":
if l1 == "":
raise Exception("End Of Input looking for ')'")
l = l + l1

Expand Down Expand Up @@ -229,7 +229,7 @@ def nextline():
elif tq != None:
raise Exception(
"Argument type '%s' cannot be qualified with {...}" % at)

vargs.append(at)

do_func(fname, rt_type, args, vargs)
Expand Down

0 comments on commit 4ef7a77

Please sign in to comment.