diff options
author | Collin Winter <collinw@gmail.com> | 2007-08-07 01:20:21 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-08-07 01:20:21 (GMT) |
commit | 45d569b8232d19b0f6bd1385e8fb624f310d230e (patch) | |
tree | 610eda1d0c574f81bed24f2ceceecb0abf2ca1e5 /Doc/lib/sqlite3/complete_statement.py | |
parent | b942d28bf5b62e1823b91a7b3986e120ec9763bc (diff) | |
download | cpython-45d569b8232d19b0f6bd1385e8fb624f310d230e.zip cpython-45d569b8232d19b0f6bd1385e8fb624f310d230e.tar.gz cpython-45d569b8232d19b0f6bd1385e8fb624f310d230e.tar.bz2 |
Run 2to3 over Doc/lib/sqlite3/.
Diffstat (limited to 'Doc/lib/sqlite3/complete_statement.py')
-rw-r--r-- | Doc/lib/sqlite3/complete_statement.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/lib/sqlite3/complete_statement.py b/Doc/lib/sqlite3/complete_statement.py index 76ea7f6..cd38d73 100644 --- a/Doc/lib/sqlite3/complete_statement.py +++ b/Doc/lib/sqlite3/complete_statement.py @@ -8,11 +8,11 @@ cur = con.cursor() buffer = "" -print "Enter your SQL commands to execute in sqlite3." -print "Enter a blank line to exit." +print("Enter your SQL commands to execute in sqlite3.") +print("Enter a blank line to exit.") while True: - line = raw_input() + line = input() if line == "": break buffer += line @@ -22,9 +22,9 @@ while True: cur.execute(buffer) if buffer.lstrip().upper().startswith("SELECT"): - print cur.fetchall() + print(cur.fetchall()) except sqlite3.Error as e: - print "An error occurred:", e.args[0] + print("An error occurred:", e.args[0]) buffer = "" con.close() |