mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Removed unnecessary imports.
This commit is contained in:
		| @@ -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) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user