From ecc078b891a08581d7d63323e28fa3f1cdf4676a Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 22 Aug 2015 20:06:14 -0400 Subject: [PATCH] DbTxn: use no_magic explicitly --- gramps/gen/db/generic.py | 4 ++-- gramps/plugins/database/bsddb_support/write.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps/gen/db/generic.py b/gramps/gen/db/generic.py index d642e9b95..5f9d51821 100644 --- a/gramps/gen/db/generic.py +++ b/gramps/gen/db/generic.py @@ -1481,14 +1481,14 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback): """ return DbGenericTxn - def DbTxn(self, message, batch=False, **kwargs): + def DbTxn(self, message, batch=False, no_magic=False): """ Create a transaction for this database type. kwargs may contain: no_magic """ - return DbGenericTxn(message, batch, **kwargs) + return DbGenericTxn(message, batch) def get_from_name_and_handle(self, table_name, handle): """ diff --git a/gramps/plugins/database/bsddb_support/write.py b/gramps/plugins/database/bsddb_support/write.py index 98dd2b5a7..ea4ff7af8 100644 --- a/gramps/plugins/database/bsddb_support/write.py +++ b/gramps/plugins/database/bsddb_support/write.py @@ -2430,14 +2430,14 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback): """ return DbTxn - def DbTxn(self, message, batch=False, **kwargs): + def DbTxn(self, message, batch=False, no_magic=False): """ Create a transaction for this database type. kwargs may contain: no_magic """ - return DbTxn(message, self, batch, **kwargs) + return DbTxn(message, self, batch, no_magic) def backup(self): """