From b2019ae7c6c13601b0f63d6324484010dc0216c7 Mon Sep 17 00:00:00 2001 From: etienne Date: Tue, 5 Aug 2008 22:45:28 +0000 Subject: Changing confusing variable names --- polls/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polls/views.py b/polls/views.py index f63d31f..deee26c 100644 --- a/polls/views.py +++ b/polls/views.py @@ -4,7 +4,7 @@ # This program can be distributed under the terms of the GNU GPL. # See the file COPYING. -from random import choice +from random import choice as random_choice import string import time @@ -31,7 +31,7 @@ def createOrEdit(request, admin_url): chars = string.letters + string.digits url = '' for i in range(6): - url += choice(chars) + url += random_choice(chars) url += str(int(time.time())) return url -- cgit v1.2.3