summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2012-02-01 13:32:45 -0800
committerRaymond Hettinger <python@rcn.com>2012-02-01 13:32:45 -0800
commit81a55c01b8bebf42f91d45a483b6c42f10b5506d (patch)
tree93e629c53e290bba2d0af487f2fbd4b1b1a3d5e3
parent3c8807bd5e29139728ea1532d330a767f373bc00 (diff)
downloadcpython-git-81a55c01b8bebf42f91d45a483b6c42f10b5506d.tar.gz
Show the import in the sqlite3 example
-rw-r--r--Doc/library/sqlite3.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index e36807c74d..b4d58b9b68 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -22,6 +22,7 @@ To use the module, you must first create a :class:`Connection` object that
represents the database. Here the data will be stored in the
:file:`/tmp/example` file::
+ import sqlite3
conn = sqlite3.connect('/tmp/example')
You can also supply the special name ``:memory:`` to create a database in RAM.