mirror of
https://github.com/django/django.git
synced 2025-10-27 23:56:08 +00:00
[py3] Updated urllib/urllib2/urlparse imports.
Lots of functions were moved. Use explicit imports in all cases to keey it easy to identify where the functions come from.
This commit is contained in:
@@ -7,7 +7,10 @@ from __future__ import absolute_import, unicode_literals
|
||||
import copy
|
||||
import datetime
|
||||
from itertools import chain
|
||||
from urlparse import urljoin
|
||||
try:
|
||||
from urllib.parse import urljoin
|
||||
except ImportError: # Python 2
|
||||
from urlparse import urljoin
|
||||
|
||||
from django.conf import settings
|
||||
from django.forms.util import flatatt, to_current_timezone
|
||||
|
||||
Reference in New Issue
Block a user