Took advantage of django.utils.six.moves.urllib.*.

This commit is contained in:
Aymeric Augustin 2013-09-05 14:38:59 -05:00
parent ed9cd4fd8b
commit 6a6428a36f
31 changed files with 50 additions and 152 deletions

View file

@ -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