mirror of
https://github.com/django/django.git
synced 2025-11-01 04:17:59 +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,16 +5,14 @@ Tests for django.core.servers.
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import os
|
||||
try:
|
||||
from urllib.request import urlopen, HTTPError
|
||||
except ImportError: # Python 2
|
||||
from urllib2 import urlopen, HTTPError
|
||||
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.test import LiveServerTestCase
|
||||
from django.core.servers.basehttp import WSGIServerException
|
||||
from django.test.utils import override_settings
|
||||
from django.utils.http import urlencode
|
||||
from django.utils.six.moves.urllib.error import HTTPError
|
||||
from django.utils.six.moves.urllib.request import urlopen
|
||||
from django.utils._os import upath
|
||||
|
||||
from .models import Person
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue