From 3bfb153b74f5dd17b001996ab93f898da45c08f1 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Tue, 11 Dec 2018 16:51:17 +0100 Subject: [PATCH] Revert "replaced i with throwaway variable (#113)" This would break the ugettext shortcut. This reverts commit faf4030e91079ec72fba6a94f2b8c09a31123f4f. --- dpaste/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpaste/models.py b/dpaste/models.py index 0212a6c..c27a716 100644 --- a/dpaste/models.py +++ b/dpaste/models.py @@ -22,7 +22,7 @@ def generate_secret_id(length): ) secret_id = ''.join( - [R.choice(config.SLUG_CHOICES) for _ in range(length or config.SLUG_LENGTH)] + [R.choice(config.SLUG_CHOICES) for i in range(length or config.SLUG_LENGTH)] ) # Check if this slug already exists, if not, return this new slug