From 0734bb4caf32083152a1571742e07415af54747c Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Wed, 9 Dec 2015 14:58:43 +0100 Subject: Fixed code-block:: --- src/tests/documentation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/tests/documentation.py b/src/tests/documentation.py index 81409fc..b704b91 100644 --- a/src/tests/documentation.py +++ b/src/tests/documentation.py @@ -1011,7 +1011,7 @@ arguments, if one of such arguments has the same name used in the caller function for the first argument. The quirk was reported by David Goldstein and here is an example where it is manifest: -.. code-block: python +.. code-block:: python >>> @memoize ... def getkeys(**kw): @@ -1028,7 +1028,7 @@ keywork arguments. The solution is to change the name of the first argument in `_memoize`, or to change the implementation as follows: -.. code-block: python +.. code-block:: python def _memoize(*all_args, **kw): func = all_args[0] -- cgit v1.2.1