Some (many) tests actually pass now on Python 3. May no longer be backwards-compatible with Python < 2.6.

This commit is contained in:
adustman
2012-09-08 20:24:45 +00:00
parent fe917fcced
commit 8041cc6df6
8 changed files with 24 additions and 20 deletions

View File

@ -2979,8 +2979,8 @@ init_mysql(void)
if (!module) return; /* this really should never happen */
#endif
#ifdef IS_PY3K
/* Py_TYPE(_mysql_ConnectionObject_Type) = &PyType_Type;
Py_TYPE(_mysql_ResultObject_Type) = &PyType_Type; */
Py_TYPE(&_mysql_ConnectionObject_Type) = &PyType_Type;
Py_TYPE(&_mysql_ResultObject_Type) = &PyType_Type;
#else
_mysql_ConnectionObject_Type.ob_type = &PyType_Type;
_mysql_ResultObject_Type.ob_type = &PyType_Type;