From: Sandro Tosi Date: Mon, 31 Oct 2011 01:40:26 +0000 (+0100) Subject: caught is the right pp of catch; thanks to Don Bennett from docs@ X-Git-Tag: v2.7.3rc1~351 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f45501d8f8fe516d8dee4cc72f80bbaf1d5fd80a;p=thirdparty%2FPython%2Fcpython.git caught is the right pp of catch; thanks to Don Bennett from docs@ --- diff --git a/Doc/includes/sqlite3/ctx_manager.py b/Doc/includes/sqlite3/ctx_manager.py index 27dd0b5834fb..d6f27e6b2282 100644 --- a/Doc/includes/sqlite3/ctx_manager.py +++ b/Doc/includes/sqlite3/ctx_manager.py @@ -8,7 +8,7 @@ with con: con.execute("insert into person(firstname) values (?)", ("Joe",)) # con.rollback() is called after the with block finishes with an exception, the -# exception is still raised and must be catched +# exception is still raised and must be caught try: with con: con.execute("insert into person(firstname) values (?)", ("Joe",))