summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-10-17 20:22:07 -0500
committerMichael Merickel <michael@merickel.org>2018-10-17 20:22:07 -0500
commit66a767f0e1911543b77a4dd768821ee2ed40390a (patch)
treead081e9063711805e941116ca16b30d41be9428c /src
parentf28dbb0ba8d276fad10a3cd25e4d60b298702d83 (diff)
downloadpyramid-66a767f0e1911543b77a4dd768821ee2ed40390a.tar.gz
pyramid-66a767f0e1911543b77a4dd768821ee2ed40390a.tar.bz2
pyramid-66a767f0e1911543b77a4dd768821ee2ed40390a.zip
move docs for argument before example
Diffstat (limited to 'src')
-rw-r--r--src/pyramid/config/routes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pyramid/config/routes.py b/src/pyramid/config/routes.py
index f38050da3..7a76e9e68 100644
--- a/src/pyramid/config/routes.py
+++ b/src/pyramid/config/routes.py
@@ -533,6 +533,9 @@ class RoutesConfiguratorMixin(object):
When the context exits, the ``route_prefix`` is reset to the original.
+ ``route_prefix`` is a string suitable to be used as a route prefix,
+ or ``None``.
+
Example Usage:
.. code-block:: python
@@ -541,9 +544,6 @@ class RoutesConfiguratorMixin(object):
with config.route_prefix_context('foo'):
config.add_route('bar', '/bar')
- ``route_prefix`` is a string suitable to be used as a route prefix,
- or ``None``.
-
.. versionadded:: 1.10
"""