From c3de9df0fffe696eeee67febd6e8566b2478c3fb Mon Sep 17 00:00:00 2001 From: bhchance Date: Mon, 12 Oct 2015 21:41:30 -0500 Subject: [PATCH] Update gotchas.rst Previous test block did not show code blocks in markdown view. --- docs/writing/gotchas.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/writing/gotchas.rst b/docs/writing/gotchas.rst index 1f661f0f3..b38a9127c 100644 --- a/docs/writing/gotchas.rst +++ b/docs/writing/gotchas.rst @@ -23,7 +23,7 @@ Python's treatment of mutable default arguments in function definitions. What You Wrote ~~~~~~~~~~~~~~ -.. testcode:: +.. code-block:: python def append_to(element, to=[]): to.append(element) @@ -32,7 +32,7 @@ What You Wrote What You Might Have Expected to Happen ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. testcode:: +.. code-block:: python my_list = append_to(12) print my_list