mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
replaced i with throwaway variable (#113)
This commit is contained in:
parent
89a4e95d88
commit
faf4030e91
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ def generate_secret_id(length):
|
||||||
)
|
)
|
||||||
|
|
||||||
secret_id = ''.join(
|
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
|
# Check if this slug already exists, if not, return this new slug
|
||||||
|
|
Loading…
Reference in a new issue