Michael Merickel
2018-10-18 66a767f0e1911543b77a4dd768821ee2ed40390a
move docs for argument before example
1 files modified
6 ■■■■ changed files
src/pyramid/config/routes.py 6 ●●●● patch | view | raw | blame | history
src/pyramid/config/routes.py
@@ -533,6 +533,9 @@
        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
@@ -540,9 +543,6 @@
            config = Configurator()
            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