mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06: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 @@ import re
|
||||
import sys
|
||||
from copy import copy
|
||||
from functools import wraps
|
||||
from urlparse import urlsplit, urlunsplit
|
||||
try:
|
||||
from urllib.parse import urlsplit, urlunsplit
|
||||
except ImportError: # Python 2
|
||||
from urlparse import urlsplit, urlunsplit
|
||||
from xml.dom.minidom import parseString, Node
|
||||
import select
|
||||
import socket
|
||||
|
||||
Reference in New Issue
Block a user