main: clean up PEP 8 warnings.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
This commit is contained in:
parent
0c7f4e7990
commit
9fa8f2246e
1 changed files with 5 additions and 2 deletions
|
|
@ -1134,11 +1134,14 @@ def import_into(db, dtbname, dbtype, minfields=0, strict=False,
|
|||
|
||||
def export_from(db, table, dbtype):
|
||||
vault = filemanip.FileStorage(dbtype, sys.stdout)
|
||||
f = lambda x: True
|
||||
|
||||
def f(x):
|
||||
return True
|
||||
if table is None and dbtype == "csv":
|
||||
raise newfol.exception.NewfolError(_("A table is required for csv"))
|
||||
if table is not None:
|
||||
f = lambda x: x.table == table
|
||||
def f(x):
|
||||
x.table == table
|
||||
vault.store(db.records(f))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue