From cd52023e6fedbe4d5a07b4ded8bfbb4939e66953 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sat, 6 Sep 2008 20:28:01 +0000 Subject: #3669 from Robert Lehmann: simplify use of iterator in example --- Doc/library/sqlite3.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v0.12