commit | cd52023e6fedbe4d5a07b4ded8bfbb4939e66953 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Sat Sep 06 20:28:01 2008 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Sat Sep 06 20:28:01 2008 +0000 |
tree | e98d548eec2fe9d8e589c26295d1bdecef82a651 | |
parent | 873c9f15d09965034b7ae5a324aa8c4d9ba34c7a [diff] |
#3669 from Robert Lehmann: simplify use of iterator in example
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 @@ 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()