From 819cf4f8f18dfd5cb34a9335585d83d4568767ce Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Sun, 15 Nov 2015 16:22:41 +0000 Subject: [PATCH] database: clean up PEP 8 warnings. Turn a lambda into a def. Signed-off-by: brian m. carlson --- lib/newfol/database.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/newfol/database.py b/lib/newfol/database.py index 85d6c1a..1f6d7d1 100644 --- a/lib/newfol/database.py +++ b/lib/newfol/database.py @@ -562,7 +562,9 @@ class Database: def upgrade(self, txntype=None, notify=None, version=None): if notify is None: - notify = lambda x: x + + def notify(x): + x if txntype is None: txntype = list(self._schema.transaction_types()) elif isinstance(txntype, str):