From: Stefan Behnel Date: Fri, 30 May 2008 08:09:09 +0000 (+0200) Subject: hispanic typos :) X-Git-Tag: 0.9.8rc1~11^2~10^2~10^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=50fe035dd0a6fad7c26aff5d96246ce164addd04;p=cython.git hispanic typos :) --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 7c8ef758..e8ac2f84 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -4280,7 +4280,7 @@ static void __Pyx_AddTraceback(char *funcname) { if (!py_funcname) goto bad; py_globals = PyModule_GetDict(%(GLOBALS)s); if (!py_globals) goto bad; - #if PY_VERSION_MAJOR < 3 + #if PY_MAJOR_VERSION < 3 empty_string = PyString_FromStringAndSize("", 0); #else empty_string = PyBytes_FromStringAndSize("", 0); diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index 310251c7..cb71d828 100644 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -1172,7 +1172,7 @@ def typecast(to_type, from_type, expr_code): type_conversion_predeclarations = """ /* Type Conversion Predeclarations */ -#if PY_VERSION_MAJOR < 3 +#if PY_MAJOR_VERSION < 3 #define __Pyx_PyBytes_FromString PyString_FromString #define __Pyx_PyBytes_AsString PyString_AsString #else