1
0
mirror of https://github.com/django/django.git synced 2025-02-23 16:24:46 +00:00

Removed unnecessary imports.

This commit is contained in:
Marten Kenbeek 2016-01-23 15:10:29 +01:00
parent 002a4f72c4
commit beb9112a79

View File

@ -166,7 +166,6 @@ def translate_url(url, lang_code):
the `lang_code` language (either by i18n_patterns or by translated regex).
Return the original URL if no translated version is found.
"""
from django.urls import resolve, reverse
parsed = urlsplit(url)
try:
match = resolve(parsed.path)