Author: Alex Gaynor <alex.gay...@gmail.com> Branch: stdlib-2.7.11 Changeset: r83201:ef51b367e34c Date: 2016-03-20 17:33 -0400 http://bitbucket.org/pypy/pypy/changeset/ef51b367e34c/
Log: whacky isinstance check to match waht the C implementation does diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py --- a/lib_pypy/_sqlite3.py +++ b/lib_pypy/_sqlite3.py @@ -1155,7 +1155,7 @@ class Row(object): def __init__(self, cursor, values): - if not isinstance(cursor, Cursor): + if not (type(cursor) is Cursor or issubclass(type(cursor), Cursor): raise TypeError("instance of cursor required for first argument") self.description = cursor.description self.values = values _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit