From a73a964e51247ed169d322c725a3a18859f109a3 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Mon, 14 Jun 2021 00:00:37 +0000 Subject: python, hg: tow outside the environment. they've served us well, and can ride off into the sunset. --- sys/src/cmd/python/Doc/lib/sqlite3/createdb.py | 28 -------------------------- 1 file changed, 28 deletions(-) delete mode 100644 sys/src/cmd/python/Doc/lib/sqlite3/createdb.py (limited to 'sys/src/cmd/python/Doc/lib/sqlite3/createdb.py') diff --git a/sys/src/cmd/python/Doc/lib/sqlite3/createdb.py b/sys/src/cmd/python/Doc/lib/sqlite3/createdb.py deleted file mode 100644 index ee2950bdf..000000000 --- a/sys/src/cmd/python/Doc/lib/sqlite3/createdb.py +++ /dev/null @@ -1,28 +0,0 @@ -# Not referenced from the documentation, but builds the database file the other -# code snippets expect. - -import sqlite3 -import os - -DB_FILE = "mydb" - -if os.path.exists(DB_FILE): - os.remove(DB_FILE) - -con = sqlite3.connect(DB_FILE) -cur = con.cursor() -cur.execute(""" - create table people - ( - name_last varchar(20), - age integer - ) - """) - -cur.execute("insert into people (name_last, age) values ('Yeltsin', 72)") -cur.execute("insert into people (name_last, age) values ('Putin', 51)") - -con.commit() - -cur.close() -con.close() -- cgit v1.2.3