summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
authorCurtis Maloney <curtis@tinbrain.net>2015-04-18 00:25:11 +1000
committerCurtis Maloney <curtis@tinbrain.net>2015-04-18 23:29:29 +1000
commit14ecbd02a337c15ffd0c319d14a56bf21127f42c (patch)
treeda72b5ed57b5cae0f0eefb489719d1f000b1f9aa /django/forms/widgets.py
parent36e90d1f45a13f53ce25fdc2d9c04433b835c9af (diff)
Removed cases of six.iter* wrapped in a list()
There's absolutely no advantage [and a mild performance hit] to using six.iter* in these cases.
Diffstat (limited to 'django/forms/widgets.py')
-rw-r--r--django/forms/widgets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index 4f38418a93..4d7565ce9c 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -988,7 +988,7 @@ class SelectDateWidget(Widget):
html = {}
choices = [(i, i) for i in self.years]
html['year'] = self.create_select(name, self.year_field, value, year_val, choices, self.year_none_value)
- choices = list(six.iteritems(self.months))
+ choices = list(self.months.items())
html['month'] = self.create_select(name, self.month_field, value, month_val, choices, self.month_none_value)
choices = [(i, i) for i in range(1, 32)]
html['day'] = self.create_select(name, self.day_field, value, day_val, choices, self.day_none_value)