diff options
Diffstat (limited to 'django/forms/utils.py')
| -rw-r--r-- | django/forms/utils.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/django/forms/utils.py b/django/forms/utils.py index 59d70178f4..b23e6be0cc 100644 --- a/django/forms/utils.py +++ b/django/forms/utils.py @@ -1,5 +1,6 @@ import json import sys +from collections import UserList from django.conf import settings from django.core.exceptions import ValidationError # backwards compatibility @@ -8,11 +9,6 @@ from django.utils.encoding import force_text from django.utils.html import escape, format_html, format_html_join, html_safe from django.utils.translation import ugettext_lazy as _ -try: - from collections import UserList -except ImportError: # Python 2 - from UserList import UserList - def pretty_name(name): """Converts 'first_name' to 'First name'""" |
