mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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:
@@ -13,7 +13,10 @@ import time
|
||||
import os
|
||||
import sys
|
||||
import traceback
|
||||
from urlparse import urljoin
|
||||
try:
|
||||
from urllib.parse import urljoin
|
||||
except ImportError: # Python 2
|
||||
from urlparse import urljoin
|
||||
|
||||
from django import template
|
||||
from django.template import base as template_base, RequestContext, Template, Context
|
||||
|
||||
Reference in New Issue
Block a user