[pypy-commit] pypy stdlib-2.7.3: Remove unused parameter

amauryfa noreply at buildbot.pypy.org
Thu Jun 14 23:15:09 CEST 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: stdlib-2.7.3
Changeset: r55671:bdb54a0a3a96
Date: 2012-06-14 23:13 +0200
http://bitbucket.org/pypy/pypy/changeset/bdb54a0a3a96/

Log:	Remove unused parameter

diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py
--- a/lib_pypy/_sqlite3.py
+++ b/lib_pypy/_sqlite3.py
@@ -288,7 +288,7 @@
         self.maxcount = maxcount
         self.cache = OrderedDict()
 
-    def get(self, sql, cursor, row_factory):
+    def get(self, sql, row_factory):
         try:
             stat = self.cache[sql]
         except KeyError:
@@ -426,10 +426,9 @@
 
     def __call__(self, sql):
         self._check_closed()
-        cur = Cursor(self)
         if not isinstance(sql, (str, unicode)):
             raise Warning("SQL is of wrong type. Must be string or unicode.")
-        statement = self.statement_cache.get(sql, cur, self.row_factory)
+        statement = self.statement_cache.get(sql, self.row_factory)
         return statement
 
     def _get_isolation_level(self):
@@ -769,7 +768,7 @@
             self._description = None
             self.reset = False
             self.statement = self.connection.statement_cache.get(
-                sql, self, self.row_factory)
+                sql, self.row_factory)
 
             if self.connection._isolation_level is not None:
                 if self.statement.kind == DDL:
@@ -809,7 +808,7 @@
             self._description = None
             self.reset = False
             self.statement = self.connection.statement_cache.get(
-                sql, self, self.row_factory)
+                sql, self.row_factory)
 
             if self.statement.kind == DML:
                 self.connection._begin()


More information about the pypy-commit mailing list