1
0
mirror of https://github.com/django/django.git synced 2025-06-23 12:29:12 +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). the `lang_code` language (either by i18n_patterns or by translated regex).
Return the original URL if no translated version is found. Return the original URL if no translated version is found.
""" """
from django.urls import resolve, reverse
parsed = urlsplit(url) parsed = urlsplit(url)
try: try:
match = resolve(parsed.path) match = resolve(parsed.path)