mercurial/util.h
changeset 30092 67b0484c9ce4
parent 30091 d576b7394646
child 30101 b6f78a72c4a4
equal deleted inserted replaced
30091:d576b7394646 30092:67b0484c9ce4
    11 #include "compat.h"
    11 #include "compat.h"
    12 
    12 
    13 #if PY_MAJOR_VERSION >= 3
    13 #if PY_MAJOR_VERSION >= 3
    14 
    14 
    15 #define IS_PY3K
    15 #define IS_PY3K
       
    16 /* The mapping of Python types is meant to be temporary to get Python
       
    17  * 3 to compile. We should remove this once Python 3 support is fully
       
    18  * supported and proper types are used in the extensions themselves. */
    16 #define PyInt_Type PyLong_Type
    19 #define PyInt_Type PyLong_Type
    17 #define PyInt_FromLong PyLong_FromLong
    20 #define PyInt_FromLong PyLong_FromLong
    18 #define PyInt_AsLong PyLong_AsLong
    21 #define PyInt_AsLong PyLong_AsLong
    19 
    22 
    20 /*
    23 /*