mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Took advantage of django.utils.six.moves.urllib.*.
This commit is contained in:
parent
ed9cd4fd8b
commit
6a6428a36f
31 changed files with 50 additions and 152 deletions
|
@ -5,13 +5,10 @@ django.test.LiveServerTestCase.
|
|||
"""
|
||||
|
||||
import os
|
||||
try:
|
||||
from urllib.request import urlopen
|
||||
except ImportError: # Python 2
|
||||
from urllib2 import urlopen
|
||||
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.test.utils import override_settings
|
||||
from django.utils.six.moves.urllib.request import urlopen
|
||||
from django.utils._os import upath
|
||||
|
||||
from django.contrib.staticfiles.testing import StaticLiveServerCase
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue