main: clean up PEP 8 warnings.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
This commit is contained in:
brian m. carlson 2015-11-15 16:21:35 +00:00
parent 0c7f4e7990
commit 9fa8f2246e
No known key found for this signature in database
GPG key ID: BF535D811F52F68B

View file

@ -1134,11 +1134,14 @@ def import_into(db, dtbname, dbtype, minfields=0, strict=False,
def export_from(db, table, dbtype): def export_from(db, table, dbtype):
vault = filemanip.FileStorage(dbtype, sys.stdout) vault = filemanip.FileStorage(dbtype, sys.stdout)
f = lambda x: True
def f(x):
return True
if table is None and dbtype == "csv": if table is None and dbtype == "csv":
raise newfol.exception.NewfolError(_("A table is required for csv")) raise newfol.exception.NewfolError(_("A table is required for csv"))
if table is not None: if table is not None:
f = lambda x: x.table == table def f(x):
x.table == table
vault.store(db.records(f)) vault.store(db.records(f))