From e14661417e7ceb50d5cf83bbd6abd6b133e473ba Mon Sep 17 00:00:00 2001
From: Michael Merickel <michael@merickel.org>
Date: Wed, 17 Oct 2018 03:57:42 +0200
Subject: [PATCH] fix the docs for route_prefix_context to avoid showing up as a doctest

---
 src/pyramid/config/routes.py |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/pyramid/config/routes.py b/src/pyramid/config/routes.py
index 4e1cb07..f38050d 100644
--- a/src/pyramid/config/routes.py
+++ b/src/pyramid/config/routes.py
@@ -535,19 +535,18 @@
 
         Example Usage:
 
-        >>> config = Configurator()
-        >>> with config.route_prefix_context('foo'):
-        ...     config.add_route('bar', '/bar')
+        .. code-block:: python
 
-        Arguments
+            config = Configurator()
+            with config.route_prefix_context('foo'):
+                config.add_route('bar', '/bar')
 
-        route_prefix
-
-          A string suitable to be used as a route prefix, or ``None``.
+        ``route_prefix`` is a string suitable to be used as a route prefix,
+        or ``None``.
 
         .. versionadded:: 1.10
-        """
 
+        """
         original_route_prefix = self.route_prefix
 
         if route_prefix is None:

--
Gitblit v1.9.3