From 7cbdcfa301355dd5fb856bf4510b1341df1e00b4 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 28 Apr 2012 00:51:37 -0700 Subject: [PATCH] Fix markup --- pep-0008.txt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pep-0008.txt b/pep-0008.txt index d96238e92..ab84c3ae1 100644 --- a/pep-0008.txt +++ b/pep-0008.txt @@ -841,16 +841,20 @@ Programming Recommendations 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.