Coding style change

This commit is contained in:
Roland Hedberg
2011-03-14 12:56:45 +01:00
parent 5b4ab566d1
commit e9ee4d66ee
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ def dict_to_table(ava, lev=0, width=1):
index = 0
num = len(valarr)
for val in valarr:
if index == 0:
if not index:
txt.append("<th rowspan=%d>%s</td>\n" % (len(valarr), prop))
else:
txt.append("<tr>\n")

View File

@@ -22,7 +22,7 @@ def dict_to_table(ava, width=1):
i = 0
n = len(valarr)
for val in valarr:
if i == 0:
if not i:
txt.append("<th rowspan=%d>%s</td>\n" % (len(valarr),prop))
else:
txt.append("<tr>\n")
@@ -84,7 +84,7 @@ def slo(environ, start_response, user, logger):
# return error reply
pass
if sids == 0:
if not sids:
start_response("302 Found", [("Location", "/done")])
return ["Successfull Logout"]