probably something like this: (untested) def make_ftplib_callback(f): def callback(block): f.write(block) return callback img = cStringIO.StringIO() retrbinary( "get ???", make_ftplib_callback(img))
Jeff
pgpaecaxnsqYB.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list