summaryrefslogtreecommitdiffstats
path: root/Modules/_elementtree.c
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2013-04-20 13:36:43 (GMT)
committerEli Bendersky <eliben@gmail.com>2013-04-20 13:36:43 (GMT)
commitddcc6798f6614b6bbc69d7d8f35f934cd0deb42b (patch)
tree776782e2e2e8814f7e3b3da13b4f42994496348d /Modules/_elementtree.c
parent10e0af84935114eea26c2f0c624fe61a5a0307c8 (diff)
downloadcpython-ddcc6798f6614b6bbc69d7d8f35f934cd0deb42b.zip
cpython-ddcc6798f6614b6bbc69d7d8f35f934cd0deb42b.tar.gz
cpython-ddcc6798f6614b6bbc69d7d8f35f934cd0deb42b.tar.bz2
Remove useless #define and #ifdefs
Diffstat (limited to 'Modules/_elementtree.c')
-rw-r--r--Modules/_elementtree.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index 6cd2d3a..c87b6a2 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -17,9 +17,6 @@
/* -------------------------------------------------------------------- */
/* configuration */
-/* Leave defined to include the expat-based XMLParser type */
-#define USE_EXPAT
-
/* An element can hold this many children without extra memory
allocations. */
#define STATIC_CHILDREN 4
@@ -2645,8 +2642,6 @@ static PyTypeObject TreeBuilder_Type = {
/* ==================================================================== */
/* the expat interface */
-#if defined(USE_EXPAT)
-
#include "expat.h"
#include "pyexpat.h"
static struct PyExpat_CAPI *expat_capi;
@@ -3604,8 +3599,6 @@ static PyTypeObject XMLParser_Type = {
0, /* tp_free */
};
-#endif
-
/* ==================================================================== */
/* python module interface */
@@ -3637,10 +3630,8 @@ PyInit__elementtree(void)
return NULL;
if (PyType_Ready(&Element_Type) < 0)
return NULL;
-#if defined(USE_EXPAT)
if (PyType_Ready(&XMLParser_Type) < 0)
return NULL;
-#endif
m = PyModule_Create(&_elementtreemodule);
if (!m)
@@ -3683,10 +3674,8 @@ PyInit__elementtree(void)
Py_INCREF((PyObject *)&TreeBuilder_Type);
PyModule_AddObject(m, "TreeBuilder", (PyObject *)&TreeBuilder_Type);
-#if defined(USE_EXPAT)
Py_INCREF((PyObject *)&XMLParser_Type);
PyModule_AddObject(m, "XMLParser", (PyObject *)&XMLParser_Type);
-#endif
return m;
}