Issue #16341: convert examples to use except ... as ... syntax.

This commit is contained in:
Andrew Svetlov 2012-10-30 21:56:43 +02:00
parent 5c89c19eae
commit 1625d88709
10 changed files with 21 additions and 22 deletions

View file

@ -23,7 +23,7 @@ while True:
if buffer.lstrip().upper().startswith("SELECT"):
print cur.fetchall()
except sqlite3.Error, e:
except sqlite3.Error as e:
print "An error occurred:", e.args[0]
buffer = ""