hispanic typos :)
authorStefan Behnel <scoder@users.berlios.de>
Fri, 30 May 2008 08:09:09 +0000 (10:09 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 30 May 2008 08:09:09 +0000 (10:09 +0200)
Cython/Compiler/Nodes.py
Cython/Compiler/PyrexTypes.py

index 7c8ef758c1797012fc04e8733beeb6ff2ea65c4a..e8ac2f84606d9540c3e5c2e037c0b9f3a5ff639e 100644 (file)
@@ -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);
index 310251c72d8465840c1335f9e8dcbeb63c0b20e1..cb71d828fc8dec508220010e0c261023e5450d3d 100644 (file)
@@ -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