summaryrefslogtreecommitdiff
path: root/MySQLdb
diff options
context:
space:
mode:
authoradustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8>2012-09-07 20:19:56 +0000
committeradustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8>2012-09-07 20:19:56 +0000
commit9737a4cb39df8ac28e52382e0ce844d6e83b6c40 (patch)
tree02cac7204ac323b91c226b494ab9bdeabd30ccbd /MySQLdb
parent1294271d28b202cb79cf4671450af2d22f1bfe91 (diff)
downloadmysqldb1-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.c7
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)