mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
Replaced print statement by print function (forward compatibility syntax).
This commit is contained in:
parent
fe43ad5707
commit
596cb9c7e2
61 changed files with 310 additions and 310 deletions
|
|
@ -964,7 +964,7 @@ information about the URL pattern that matches a URL::
|
|||
# Resolve a URL
|
||||
match = resolve('/some/path/')
|
||||
# Print the URL pattern that matches the URL
|
||||
print match.url_name
|
||||
print(match.url_name)
|
||||
|
||||
A :class:`ResolverMatch` object can also be assigned to a triple::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue