Tshepang Lekhonkhobe <tshep...@gmail.com> added the comment:

> Éric Araujo <mer...@netwok.org> added the comment:
>
> Use this:
>
> .. code-block:: none
>
>   output etc.

Thanks much. I've attached a patch.

----------
Added file: http://bugs.python.org/file24757/tis-not-code-2.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14217>
_______________________________________
diff -r b8be6ac4395d Doc/tutorial/classes.rst
--- a/Doc/tutorial/classes.rst  Wed Mar 07 08:55:52 2012 +0100
+++ b/Doc/tutorial/classes.rst  Thu Mar 08 12:03:20 2012 +0200
@@ -180,7 +180,9 @@
    scope_test()
    print("In global scope:", spam)
 
-The output of the example code is::
+The output of the example code is:
+
+.. code-block:: none
 
    After local assignment: test spam
    After nonlocal assignment: nonlocal spam
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to