From faf4030e91079ec72fba6a94f2b8c09a31123f4f Mon Sep 17 00:00:00 2001 From: ABDUL NIYAS P M Date: Sun, 9 Dec 2018 17:54:16 +0530 Subject: [PATCH] replaced i with throwaway variable (#113) --- dpaste/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpaste/models.py b/dpaste/models.py index c27a716..0212a6c 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 i in range(length or config.SLUG_LENGTH)] + [R.choice(config.SLUG_CHOICES) for _ in range(length or config.SLUG_LENGTH)] ) # Check if this slug already exists, if not, return this new slug