diff options
Diffstat (limited to 'django/forms/boundfield.py')
| -rw-r--r-- | django/forms/boundfield.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/forms/boundfield.py b/django/forms/boundfield.py index 6faff6ffc9..dc40bca508 100644 --- a/django/forms/boundfield.py +++ b/django/forms/boundfield.py @@ -3,7 +3,6 @@ import warnings from django.forms.utils import flatatt, pretty_name from django.forms.widgets import Textarea, TextInput -from django.utils import six from django.utils.deprecation import RemovedInDjango21Warning from django.utils.encoding import force_text from django.utils.functional import cached_property @@ -63,7 +62,7 @@ class BoundField(object): def __getitem__(self, idx): # Prevent unnecessary reevaluation when accessing BoundField's attrs # from templates. - if not isinstance(idx, six.integer_types + (slice,)): + if not isinstance(idx, (int, slice)): raise TypeError return self.subwidgets[idx] |
