summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-08-11 17:31:17 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-08-11 17:31:17 (GMT)
commitf0f45142d52436d26ce8ed888c73496949caae90 (patch)
tree53a4f3c197b87cb8afa33b87de48b06d5859513d /Modules
parent3a879e8a277e61195f5379862ef47f3ca9c69f4b (diff)
downloadcpython-f0f45142d52436d26ce8ed888c73496949caae90.zip
cpython-f0f45142d52436d26ce8ed888c73496949caae90.tar.gz
cpython-f0f45142d52436d26ce8ed888c73496949caae90.tar.bz2
Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99
va_copy, but available on all python platforms. Untabified a few unrelated files.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_elementtree.c28
-rw-r--r--Modules/_hashopenssl.c2
2 files changed, 15 insertions, 15 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index 2fad8e2..876ab3a 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -2870,15 +2870,15 @@ static PyMethodDef _functions[] = {
static struct PyModuleDef _elementtreemodule = {
- PyModuleDef_HEAD_INIT,
- "_elementtree",
- NULL,
- -1,
- _functions,
- NULL,
- NULL,
- NULL,
- NULL
+ PyModuleDef_HEAD_INIT,
+ "_elementtree",
+ NULL,
+ -1,
+ _functions,
+ NULL,
+ NULL,
+ NULL,
+ NULL
};
PyMODINIT_FUNC
@@ -2890,12 +2890,12 @@ PyInit__elementtree(void)
/* Initialize object types */
if (PyType_Ready(&TreeBuilder_Type) < 0)
- return NULL;
+ return NULL;
if (PyType_Ready(&Element_Type) < 0)
- return NULL;
+ return NULL;
#if defined(USE_EXPAT)
if (PyType_Ready(&XMLParser_Type) < 0)
- return NULL;
+ return NULL;
#endif
m = PyModule_Create(&_elementtreemodule);
@@ -2905,8 +2905,8 @@ PyInit__elementtree(void)
/* The code below requires that the module gets already added
to sys.modules. */
PyDict_SetItemString(PyImport_GetModuleDict(),
- _elementtreemodule.m_name,
- m);
+ _elementtreemodule.m_name,
+ m);
/* python glue code */
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c
index 887de55..9f550a6 100644
--- a/Modules/_hashopenssl.c
+++ b/Modules/_hashopenssl.c
@@ -559,7 +559,7 @@ static struct PyMethodDef EVP_functions[] = {
CONSTRUCTOR_METH_DEF(sha384),
CONSTRUCTOR_METH_DEF(sha512),
#endif
- {NULL, NULL} /* Sentinel */
+ {NULL, NULL} /* Sentinel */
};