X-Git-Url: https://git.distorted.org.uk/~mdw/pyke/blobdiff_plain/92d8797b11ec4b7c5e9b1b2e2721d2e2ec26cee8..598327e56b4c57b391881c30f52f068e611552ba:/catacomb.c diff --git a/catacomb.c b/catacomb.c index f02d39e..b54227f 100644 --- a/catacomb.c +++ b/catacomb.c @@ -151,14 +151,14 @@ static PyObject *meth__ego(PyObject *me, PyObject *arg) static PyMethodDef methods[] = { #define METHNAME(func) meth_##func - METH (_ego, "_ego(ARGV0)") + METH (_ego, "_ego(ARGV0)") #undef METHNAME { 0 } }; static void init_random(void) { -#if PY_MAJOR_VERSION >= 3 || (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION >= 6) +#if PY_VERSION_HEX >= 0x02060000 char *seed; uint32 r; @@ -174,6 +174,8 @@ static void init_random(void) EXPORT void init_base(void) { PyObject *mod; + + modname = PyString_FromString("catacomb"); addmethods(methods); INIT_MODULES; init_random();