summaryrefslogtreecommitdiff
path: root/django/forms/boundfield.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-12-29 16:27:49 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-18 20:18:46 +0100
commit7b2f2e74adb36a4334e83130f6abc2f79d395235 (patch)
tree313387ba6a6f1311b43cf5fb4f2576d2d6c4f805 /django/forms/boundfield.py
parentf6acd1d271122d66de8061e75ae26137ddf02658 (diff)
Refs #23919 -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
Diffstat (limited to 'django/forms/boundfield.py')
-rw-r--r--django/forms/boundfield.py3
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]