summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-09-06 20:28:01 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2008-09-06 20:28:01 (GMT)
commitcd52023e6fedbe4d5a07b4ded8bfbb4939e66953 (patch)
treee98d548eec2fe9d8e589c26295d1bdecef82a651 /Doc
parent873c9f15d09965034b7ae5a324aa8c4d9ba34c7a (diff)
downloadcpython-cd52023e6fedbe4d5a07b4ded8bfbb4939e66953.zip
cpython-cd52023e6fedbe4d5a07b4ded8bfbb4939e66953.tar.gz
cpython-cd52023e6fedbe4d5a07b4ded8bfbb4939e66953.tar.bz2
#3669 from Robert Lehmann: simplify use of iterator in example
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/sqlite3.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 5408630..6185a59 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -424,7 +424,7 @@ A :class:`Connection` instance has the following attributes and methods:
import sqlite3, os
con = sqlite3.connect('existing_db.db')
- full_dump = os.linesep.join([line for line in con.iterdump()])
+ full_dump = os.linesep.join(con.iterdump())
f = open('dump.sql', 'w')
f.writelines(full_dump)
f.close()