mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Replaced print statement by print function (forward compatibility syntax).
This commit is contained in:
@@ -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::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user