mirror of
https://github.com/django/django.git
synced 2025-10-20 07:12:30 +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:
parent
bdca5ea345
commit
0d914d08a0
32 changed files with 181 additions and 96 deletions
|
@ -3,8 +3,11 @@ import hashlib
|
|||
import os
|
||||
import posixpath
|
||||
import re
|
||||
from urllib import unquote
|
||||
from urlparse import urlsplit, urlunsplit, urldefrag
|
||||
try:
|
||||
from urllib.parse import unquote, urlsplit, urlunsplit, urldefrag
|
||||
except ImportError: # Python 2
|
||||
from urllib import unquote
|
||||
from urlparse import urlsplit, urlunsplit, urldefrag
|
||||
|
||||
from django.conf import settings
|
||||
from django.core.cache import (get_cache, InvalidCacheBackendError,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue