... why do I use list() there..

This commit is contained in:
Morten Delenk 2016-06-12 18:42:06 +02:00
parent a548fc44c1
commit 264f794eea

View file

@ -17,7 +17,7 @@ try:
print("2") print("2")
random.seed(seed) random.seed(seed)
print("3") print("3")
checkstr=list("".join(random.choice(string.digits+string.ascii_lowercase) for _ in range(5))) checkstr="".join(random.choice(string.digits+string.ascii_lowercase) for _ in range(5))
print(checkstr) print(checkstr)
print("4") print("4")
if not checkstr == form["checkstr"].value: if not checkstr == form["checkstr"].value:
@ -40,7 +40,7 @@ except KeyError:
seed=random.SystemRandom().randint(0,2**24) seed=random.SystemRandom().randint(0,2**24)
random.seed(seed) random.seed(seed)
checkstr=list("".join(random.choice(string.digits+string.ascii_lowercase) for _ in range(5))) checkstr="".join(random.choice(string.digits+string.ascii_lowercase) for _ in range(5))
image = ImageCaptcha() image = ImageCaptcha()
capt = image.generate(checkstr) capt = image.generate(checkstr)
html=htmlgen.HTMLgen(pagelayout.getLayoutXML().decode('utf-8'),"Comments") html=htmlgen.HTMLgen(pagelayout.getLayoutXML().decode('utf-8'),"Comments")