From 1933e56eca1ad17de7dd133bfb7cbee9858a75a3 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Sat, 9 Feb 2019 19:18:48 +0500 Subject: Removed uneeded generator expressions and list comprehensions. --- django/forms/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/forms/forms.py') diff --git a/django/forms/forms.py b/django/forms/forms.py index 0c49a94432..dd562099ab 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -160,7 +160,7 @@ class BaseForm: "Key '%s' not found in '%s'. Choices are: %s." % ( name, self.__class__.__name__, - ', '.join(sorted(f for f in self.fields)), + ', '.join(sorted(self.fields)), ) ) if name not in self._bound_fields_cache: -- cgit v1.3