Author: Brian Kearns <[email protected]>
Branch:
Changeset: r62104:8f3d8c5f9a11
Date: 2013-03-05 19:36 -0500
http://bitbucket.org/pypy/pypy/changeset/8f3d8c5f9a11/
Log: missing/extra checks
diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py
--- a/lib_pypy/_sqlite3.py
+++ b/lib_pypy/_sqlite3.py
@@ -428,6 +428,7 @@
if self.statement_counter % 100 == 0:
self.statements = [ref for ref in self.statements if ref() is not
None]
+ @_check_thread_wrap
@_check_closed_wrap
def __call__(self, sql):
if not isinstance(sql, (str, unicode)):
@@ -462,7 +463,6 @@
return _iterdump(self)
def _begin(self):
- self._check_closed()
if self._isolation_level is None:
return
if sqlite.sqlite3_get_autocommit(self.db):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit