summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-09-17 03:26:16 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-09-17 03:26:16 (GMT)
commit6d57fe1c23430d0d51de243a177670b76c37dab5 (patch)
tree8625e5f5e0b9e9f7a7bc02928757772e052f6886 /Modules/_ctypes
parent4a72a7b6c4c95f7613486f0e4e20a3d4815a16c5 (diff)
downloadcpython-6d57fe1c23430d0d51de243a177670b76c37dab5.zip
cpython-6d57fe1c23430d0d51de243a177670b76c37dab5.tar.gz
cpython-6d57fe1c23430d0d51de243a177670b76c37dab5.tar.bz2
Issue #28139: Fix messed up indentation
Also update the classmethod and staticmethod doc strings and comments to match the RST documentation.
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r--Modules/_ctypes/_ctypes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 7de9cee..2935292 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -5138,18 +5138,18 @@ comerror_init(PyObject *self, PyObject *args, PyObject *kwds)
int status;
if (!_PyArg_NoKeywords(Py_TYPE(self)->tp_name, kwds))
- return -1;
+ return -1;
if (!PyArg_ParseTuple(args, "OOO:COMError", &hresult, &text, &details))
return -1;
a = PySequence_GetSlice(args, 1, PySequence_Size(args));
if (!a)
- return -1;
+ return -1;
status = PyObject_SetAttrString(self, "args", a);
Py_DECREF(a);
if (status < 0)
- return -1;
+ return -1;
if (PyObject_SetAttrString(self, "hresult", hresult) < 0)
return -1;