diff options
| -rw-r--r-- | docs/narr/urldispatch.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index bc2509e3f..684e64395 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -1190,7 +1190,7 @@ expressions specifying requirements for that marker. For instance: config.add_route_predicate('integers', IntegersPredicate) - config.add_route('ymd', '/{year:\d+}/{month:\d+}/{day:\d+}', + config.add_route('ymd', r'/{year:\d+}/{month:\d+}/{day:\d+}', integers=('year', 'month', 'day')) Now the try/except is no longer needed because the route will not match at all |
