database: clean up PEP 8 warnings.

Turn a lambda into a def.

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

View file

@ -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):