... why do I use list() there..
This commit is contained in:
parent
a548fc44c1
commit
264f794eea
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue