mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[py3] Switched to Python 3-compatible imports.
xrange/range will be dealt with in a separate commit due to the huge number of changes.
This commit is contained in:
@@ -103,9 +103,9 @@ import __future__
|
||||
import sys, traceback, inspect, linecache, os, re
|
||||
import unittest, difflib, pdb, tempfile
|
||||
import warnings
|
||||
from StringIO import StringIO
|
||||
|
||||
from django.utils import six
|
||||
from django.utils.six import StringIO
|
||||
|
||||
if sys.platform.startswith('java'):
|
||||
# On Jython, isclass() reports some modules as classes. Patch it.
|
||||
|
||||
@@ -5,9 +5,8 @@ Comparing two html documents.
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import re
|
||||
from HTMLParser import HTMLParseError
|
||||
from django.utils.encoding import force_unicode
|
||||
from django.utils.html_parser import HTMLParser
|
||||
from django.utils.html_parser import HTMLParser, HTMLParseError
|
||||
from django.utils import six
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user