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:
parent
9fa8f2246e
commit
819cf4f8f1
1 changed files with 3 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue