diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-09-05 14:38:59 -0500 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-09-10 21:29:31 +0200 |
| commit | f9f792eb04dfd48d93682070583f473166b490ae (patch) | |
| tree | c66c3d474e808d664b3b24b94fdc3d5344295c4f /tests/template_tests | |
| parent | 960f5bc75901f76e9b4b356f98b22b494fb47611 (diff) | |
[1.6.x] Took advantage of django.utils.six.moves.urllib.*.
Backport of 6a6428a36 from master.
Diffstat (limited to 'tests/template_tests')
| -rw-r--r-- | tests/template_tests/tests.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py index 76712a09a6..b2f35b1a8d 100644 --- a/tests/template_tests/tests.py +++ b/tests/template_tests/tests.py @@ -13,10 +13,6 @@ import time import os import sys import traceback -try: - from urllib.parse import urljoin -except ImportError: # Python 2 - from urlparse import urljoin import warnings from django import template @@ -34,6 +30,7 @@ from django.utils._os import upath from django.utils.translation import activate, deactivate, ugettext as _ from django.utils.safestring import mark_safe from django.utils import six +from django.utils.six.moves.urllib.parse import urljoin from django.utils.tzinfo import LocalTimezone from i18n import TransRealMixin |
