Commit cd52023e authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

#3669 from Robert Lehmann: simplify use of iterator in example

parent 873c9f15
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment