[Python-checkins] peps: Fix markup

raymond.hettinger python-checkins at python.org
Sat Apr 28 09:51:45 CEST 2012


http://hg.python.org/peps/rev/24d02504e664
changeset:   4318:24d02504e664
user:        Raymond Hettinger <python at rcn.com>
date:        Sat Apr 28 00:51:37 2012 -0700
summary:
  Fix markup

files:
  pep-0008.txt |  16 ++++++++++------
  1 files changed, 10 insertions(+), 6 deletions(-)


diff --git a/pep-0008.txt b/pep-0008.txt
--- a/pep-0008.txt
+++ b/pep-0008.txt
@@ -841,16 +841,20 @@
   whenever they do something other than acquire and release resources.
   For example:
 
-      Yes:     with conn.begin_transaction():
+  Yes::
+
+               with conn.begin_transaction():
                    do_stuff_in_transaction(conn)
 
-      No:      with conn:
+  No::
+
+               with conn:
                    do_stuff_in_transaction(conn)
 
-   The latter example doesn't provide any information to indicate that
-   the __enter__ and __exit__ methods are doing something other than
-   closing the connection after a transaction.  Being explicit is
-   important in this case.
+  The latter example doesn't provide any information to indicate that
+  the __enter__ and __exit__ methods are doing something other than
+  closing the connection after a transaction.  Being explicit is
+  important in this case.
 
 - Use string methods instead of the string module.
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list