mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
merge with 3.2
This commit is contained in:
commit
9bf59aa103
1 changed files with 1 additions and 1 deletions
|
|
@ -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",))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue