mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +08:00
Some (many) tests actually pass now on Python 3. May no longer be backwards-compatible with Python < 2.6.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user