diff options
author | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2012-09-07 20:19:56 +0000 |
---|---|---|
committer | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2012-09-07 20:19:56 +0000 |
commit | 9737a4cb39df8ac28e52382e0ce844d6e83b6c40 (patch) | |
tree | 02cac7204ac323b91c226b494ab9bdeabd30ccbd /MySQLdb | |
parent | 1294271d28b202cb79cf4671450af2d22f1bfe91 (diff) | |
download | mysqldb1-9737a4cb39df8ac28e52382e0ce844d6e83b6c40.tar.gz |
Some Python 3 fixes for _mysql. It ain't fixed but at least it ain't broken yet (for Python <3)
Diffstat (limited to 'MySQLdb')
-rw-r--r-- | MySQLdb/_mysql.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MySQLdb/_mysql.c b/MySQLdb/_mysql.c index 562dd88..0e1f0bb 100644 --- a/MySQLdb/_mysql.c +++ b/MySQLdb/_mysql.c @@ -26,6 +26,13 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#if PY_MAJOR_VERSION >= 3 +#define IS_PY3K +#endif +#if PY_VERSION_HEX > 0x02060000 +#include "bytesobject.h" +#include "intobject.h" +#endif #include "pymemcompat.h" #include "structmember.h" #if defined(MS_WINDOWS) |