Kaydet (Commit) 7037dc57 authored tarafından Yoong Kang Lim's avatar Yoong Kang Lim Kaydeden (comit) Tim Graham

Removed unnecessary import in django/urls/base.py.

üst 817b75c5
...@@ -153,7 +153,6 @@ def is_valid_path(path, urlconf=None): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment