]> git.saurik.com Git - cyql.git/commitdiff
Support arguments to cyql.transact().
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 19 Jan 2011 16:14:33 +0000 (16:14 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 19 Jan 2011 16:15:10 +0000 (16:15 +0000)
__init__.py

index 8102167c867c7deeadce8992a98e4016bbf7f61b..ef0fe1d884e0ad7121945fc867e317493475f3d1 100644 (file)
@@ -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
 
 """