mirror of
https://github.com/django/django.git
synced 2025-09-27 12:39:17 +00:00
Removed unnecessary import in django/urls/base.py.
This commit is contained in:
parent
817b75c54d
commit
7037dc5724
1 changed files with 0 additions and 1 deletions
|
@ -153,7 +153,6 @@ def is_valid_path(path, urlconf=None):
|
||||||
False otherwise. This is a convenience method to make working with "is
|
False otherwise. This is a convenience method to make working with "is
|
||||||
this a match?" cases easier, avoiding try...except blocks.
|
this a match?" cases easier, avoiding try...except blocks.
|
||||||
"""
|
"""
|
||||||
from django.urls.base import resolve
|
|
||||||
try:
|
try:
|
||||||
resolve(path, urlconf)
|
resolve(path, urlconf)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue