[pypy-commit] pypy default: this variable is internal

bdkearns noreply at buildbot.pypy.org
Sat Mar 9 21:11:02 CET 2013


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r62273:b09b4f5c8026
Date: 2013-03-09 15:09 -0500
http://bitbucket.org/pypy/pypy/changeset/b09b4f5c8026/

Log:	this variable is internal

diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py
--- a/lib_pypy/_sqlite3.py
+++ b/lib_pypy/_sqlite3.py
@@ -1193,9 +1193,9 @@
             self.__row_cast_map.append(converter)
 
     def _readahead(self, cursor):
-        self.column_count = _lib.sqlite3_column_count(self._statement)
         row = []
-        for i in xrange(self.column_count):
+        num_cols = _lib.sqlite3_column_count(self._statement)
+        for i in xrange(num_cols):
             if self.__con._detect_types:
                 converter = self.__row_cast_map[i]
             else:


More information about the pypy-commit mailing list