[pypy-svn] pypy default: Don't allow arbitrary kwargs to sqlite3 connection.

alex_gaynor commits-noreply at bitbucket.org
Wed Mar 16 19:03:47 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r42725:6239935d3564
Date: 2011-03-16 14:02 -0400
http://bitbucket.org/pypy/pypy/changeset/6239935d3564/

Log:	Don't allow arbitrary kwargs to sqlite3 connection.

diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py
--- a/lib_pypy/_sqlite3.py
+++ b/lib_pypy/_sqlite3.py
@@ -232,7 +232,7 @@
     return unicode(x, 'utf-8')
 
 class Connection(object):
-    def __init__(self, database, isolation_level="", detect_types=0, timeout=None, *args, **kwargs):
+    def __init__(self, database, isolation_level="", detect_types=0, timeout=None, cached_statements=None, factory=None):
         self.db = c_void_p()
         if sqlite.sqlite3_open(database, byref(self.db)) != SQLITE_OK:
             raise OperationalError("Could not open database")


More information about the Pypy-commit mailing list