mirror of
https://github.com/django/django.git
synced 2025-11-28 14:37:59 +00:00
Fixed #28249 -- Removed unnecessary dict.keys() calls.
iter(dict) is equivalent to iter(dict.keys()).
This commit is contained in:
parent
2a5708a304
commit
21046e7773
43 changed files with 84 additions and 85 deletions
|
|
@ -495,7 +495,7 @@ def get_available_image_extensions():
|
|||
return []
|
||||
else:
|
||||
Image.init()
|
||||
return [ext.lower()[1:] for ext in Image.EXTENSION.keys()]
|
||||
return [ext.lower()[1:] for ext in Image.EXTENSION]
|
||||
|
||||
|
||||
validate_image_file_extension = FileExtensionValidator(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue