[python-dtcwt] 404/497: docs/backend: fix typo in Python code

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.

commit 9b2d0c622a8184ea014914b365fa9bdb33ecce38
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Mon Feb 10 19:19:09 2014 +0000

    docs/backend: fix typo in Python code
---
 docs/backends.rst | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/docs/backends.rst b/docs/backends.rst
index 9b9227b..6f5208b 100644
--- a/docs/backends.rst
+++ b/docs/backends.rst
@@ -67,14 +67,18 @@ keeps the device-side results available.)
 
 The default backend used by :py:class:`dtcwt.Transform2d`, etc can be
 manipulated using the :py:func:`dtcwt.push_backend` function. For example, to
-switch to the OpenCL backend::
+switch to the OpenCL backend
 
-    dtcwt.push_backend('opencl)'
+.. code-block:: python
+
+    dtcwt.push_backend('opencl')
     # ... Transform2d, etc now use OpenCL ...
 
 As is suggested by the name, changing the backend manipulates a stack behind
 the scenes and so one can temporarily switch backend using
-:py:func:`dtcwt.push_backend` and :py:func:`dtcwt.pop_backend`::
+:py:func:`dtcwt.push_backend` and :py:func:`dtcwt.pop_backend`
+
+.. code-block:: python
 
     # Run benchmark with NumPy
     my_benchmarking_function()
@@ -86,7 +90,9 @@ the scenes and so one can temporarily switch backend using
 
 It is safer to use the :py:func:`dtcwt.preserve_backend_stack` function. This
 returns a guard object which can be used with the ``with`` statement to save
-the state of the backend stack::
+the state of the backend stack
+
+.. code-block:: python
 
     with dtcwt.preserve_backend_stack():
         dtcwt.push_backend('opencl')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list