summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-03-27 15:46:18 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-03-27 15:46:18 (GMT)
commit557a06309c212d0218191253afe020df01133c1f (patch)
tree15388546139b5d526df2150e716a35a05ce5a167
parent5503d4731e822e90eea387efa37934d2df41c784 (diff)
downloadcpython-557a06309c212d0218191253afe020df01133c1f.zip
cpython-557a06309c212d0218191253afe020df01133c1f.tar.gz
cpython-557a06309c212d0218191253afe020df01133c1f.tar.bz2
sqlite3 documentation: Connection.iterdump() is a method
-rw-r--r--Doc/library/sqlite3.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index aee444b..c5a5e81 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -495,7 +495,7 @@ Connection Objects
deleted since the database connection was opened.
- .. attribute:: iterdump
+ .. method:: iterdump
Returns an iterator to dump the database in an SQL text format. Useful when
saving an in-memory database for later restoration. This function provides
@@ -505,7 +505,7 @@ Connection Objects
Example::
# Convert file existing_db.db to SQL dump file dump.sql
- import sqlite3, os
+ import sqlite3
con = sqlite3.connect('existing_db.db')
with open('dump.sql', 'w') as f: