diff Modules/_elementtree.c @ 36684:0bebeb393045 legacy-trunk

More unconsting.
author Martin v. Löwis <martin@v.loewis.de>
date Mon, 27 Feb 2006 17:20:04 +0000
parents 7fdc639bc5b4
children db5e720b0cef
line wrap: on
line diff
--- a/Modules/_elementtree.c	Mon Feb 27 17:15:31 2006 +0000
+++ b/Modules/_elementtree.c	Mon Feb 27 17:20:04 2006 +0000
@@ -106,12 +106,6 @@
 #endif
 #endif
 
-#if (PY_VERSION_HEX >= 0x02050000)
-#define PY_CONST const /* 2.5 adds const to some API:s */
-#else
-#define PY_CONST
-#endif
-
 #if !defined(Py_RETURN_NONE)
 #define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
 #endif
@@ -2192,7 +2186,7 @@
 
     PyObject* target = NULL;
     char* encoding = NULL;
-    static PY_CONST char* kwlist[] = { "target", "encoding", NULL };
+    static char* kwlist[] = { "target", "encoding", NULL };
     if (!PyArg_ParseTupleAndKeywords(args, kw, "|Oz:XMLParser", kwlist,
                                      &target, &encoding))
         return NULL;