1
0
mirror of https://github.com/django/django.git synced 2025-10-28 16:16:12 +00:00

Sorted imports with isort; refs #23860.

This commit is contained in:
Tim Graham
2015-01-28 07:35:27 -05:00
parent 388d986b8a
commit 0ed7d15563
793 changed files with 2551 additions and 2333 deletions

View File

@@ -3,22 +3,18 @@ from __future__ import unicode_literals
import json
import sys
from django.conf import settings
from django.core.exceptions import ValidationError # backwards compatibility
from django.utils import six, timezone
from django.utils.encoding import force_text, python_2_unicode_compatible
from django.utils.html import escape, format_html, format_html_join
from django.utils.translation import ugettext_lazy as _
try:
from collections import UserList
except ImportError: # Python 2
from UserList import UserList
from django.conf import settings
from django.utils.encoding import force_text, python_2_unicode_compatible
from django.utils.html import format_html, format_html_join, escape
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django.utils import six
# Import ValidationError so that it can be imported from this
# module to maintain backwards compatibility.
from django.core.exceptions import ValidationError
def flatatt(attrs):
"""