diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-05-16 23:24:08 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-05-16 23:24:08 +0000 |
commit | 1b383570945595b5552c37859f4e17fb02575d05 (patch) | |
tree | 9898e4977c53ebb51824a02e42fe9a413b607a7f /Doc/lib/sqlite3/executescript.py | |
parent | cbd7b756e4c569ae0a12fdcf3b4bf3b64304612e (diff) | |
download | cpython-git-1b383570945595b5552c37859f4e17fb02575d05.tar.gz |
Text files missing the SVN eol-style property.
Diffstat (limited to 'Doc/lib/sqlite3/executescript.py')
-rw-r--r-- | Doc/lib/sqlite3/executescript.py | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/Doc/lib/sqlite3/executescript.py b/Doc/lib/sqlite3/executescript.py index 2c04066354..0795b47a34 100644 --- a/Doc/lib/sqlite3/executescript.py +++ b/Doc/lib/sqlite3/executescript.py @@ -1,24 +1,24 @@ -import sqlite3
-
-con = sqlite3.connect(":memory:")
-cur = con.cursor()
-cur.executescript("""
- create table person(
- firstname,
- lastname,
- age
- );
-
- create table book(
- title,
- author,
- published
- );
-
- insert into book(title, author, published)
- values (
- 'Dirk Gently''s Holistic Detective Agency
- 'Douglas Adams',
- 1987
- );
- """)
+import sqlite3 + +con = sqlite3.connect(":memory:") +cur = con.cursor() +cur.executescript(""" + create table person( + firstname, + lastname, + age + ); + + create table book( + title, + author, + published + ); + + insert into book(title, author, published) + values ( + 'Dirk Gently''s Holistic Detective Agency + 'Douglas Adams', + 1987 + ); + """) |