From: Jay Freeman (saurik) Date: Wed, 19 Jan 2011 16:14:33 +0000 (+0000) Subject: Support arguments to cyql.transact(). X-Git-Url: https://git.saurik.com/cyql.git/commitdiff_plain/1e22734012e20479aab7682a9fccf54281defd7b Support arguments to cyql.transact(). --- diff --git a/__init__.py b/__init__.py index 8102167..ef0fe1d 100644 --- a/__init__.py +++ b/__init__.py @@ -120,9 +120,9 @@ def connected(dsn): return wrapped @contextmanager -def transact(dsn, **args): +def transact(dsn, *args, **kw): with connect(dsn) as connection: - with connection.transact(**args): + with connection.transact(*args, **kw): yield connection """