From 12c855cb54c978a2ebd6910fcd786c54171d4219 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 21 Jan 2011 19:29:17 +0000 Subject: [PATCH] New kw-based @cyql.connected(). --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index ef0fe1d..90beb40 100644 --- a/__init__.py +++ b/__init__.py @@ -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 -- 2.47.2