def backup_list(self, query, detail):
import csv<EOL>from wal_e.storage.base import BackupInfo<EOL>bl = self._backup_list(detail)<EOL>if query is None:<EOL><INDENT>bl_iter = bl<EOL><DEDENT>else:<EOL><INDENT>bl_iter = bl.find_all(query)<EOL><DEDENT>w_csv = csv.writer(sys.stdout, dialect='<STR_LIT>')<EOL>w_csv.writerow(BackupInfo._fields)<EOL>for bi in bl_iter:<EOL><INDENT>w_csv.writerow([getattr(bi, k) for k in BackupInfo._fields])<EOL><DEDENT>sys.stdout.flush()<EOL>
Lists base backups and basic information about them