From 50fe035dd0a6fad7c26aff5d96246ce164addd04 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 30 May 2008 10:09:09 +0200 Subject: [PATCH] hispanic typos :) --- Cython/Compiler/Nodes.py | 2 +- Cython/Compiler/PyrexTypes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2