summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-07-28 19:42:40 (GMT)
committerThomas Heller <theller@ctypes.org>2006-07-28 19:42:40 (GMT)
commit944f3b6ecba741b54fed1190980fba1272568ebe (patch)
tree7ecac7811d2e1d6dc528a5cb3d3c86ffc3e50dd2
parentcddabbf98ab16a1daa5cc36e0ef0767066d4feed (diff)
downloadcpython-944f3b6ecba741b54fed1190980fba1272568ebe.zip
cpython-944f3b6ecba741b54fed1190980fba1272568ebe.tar.gz
cpython-944f3b6ecba741b54fed1190980fba1272568ebe.tar.bz2
Remove a useless XXX comment.
Cosmetic changes to the code so that the #ifdef _UNICODE block doesn't mess emacs code formatting.
-rw-r--r--Modules/_ctypes/callproc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
index 6342ece..a57eecb 100644
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -851,17 +851,17 @@ GetComError(HRESULT errcode, GUID *riid, IUnknown *pIunk)
progid = NULL;
ProgIDFromCLSID(&guid, &progid);
-/* XXX Is COMError derived from WindowsError or not? */
text = FormatError(errcode);
+ obj = Py_BuildValue(
#ifdef _UNICODE
- obj = Py_BuildValue("iu(uuuiu)",
+ "iu(uuuiu)",
#else
- obj = Py_BuildValue("is(uuuiu)",
+ "is(uuuiu)",
#endif
- errcode,
- text,
- descr, source, helpfile, helpcontext,
- progid);
+ errcode,
+ text,
+ descr, source, helpfile, helpcontext,
+ progid);
if (obj) {
PyErr_SetObject(ComError, obj);
Py_DECREF(obj);