Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r77593:5eb28496aa65
Date: 2015-05-26 14:05 -0400
http://bitbucket.org/pypy/pypy/changeset/5eb28496aa65/
Log: Fixed some string formatting in a sqlite3 exception
diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py
--- a/lib_pypy/_sqlite3.py
+++ b/lib_pypy/_sqlite3.py
@@ -285,7 +285,7 @@
raise ProgrammingError(
"SQLite objects created in a thread can only be used in that "
"same thread. The object was created in thread id %d and this "
- "is thread id %d", self.__thread_ident, _thread_get_ident())
+ "is thread id %d" % (self.__thread_ident, _thread_get_ident()))
def _check_thread_wrap(func):
@wraps(func)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit