]> git.saurik.com Git - cyql.git/commitdiff
New kw-based @cyql.connected().
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 21 Jan 2011 19:29:17 +0000 (19:29 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 21 Jan 2011 19:29:17 +0000 (19:29 +0000)
__init__.py

index ef0fe1d884e0ad7121945fc867e317493475f3d1..90beb40190c3133c8ff7ef6cefb7301a275a60ec 100644 (file)
@@ -114,8 +114,8 @@ def connect(dsn):
 def connected(dsn):
     def wrapped(method):
         def replaced(*args, **kw):
-            with connect(dsn) as connection:
-                return method(connection, *args, **kw)
+            with connect(dsn) as sql:
+                return method(*args, sql=sql, **kw)
         return replaced
     return wrapped