[Python-checkins] r50915 - python/trunk/Modules/_ctypes/callproc.c
thomas.heller
python-checkins at python.org
Fri Jul 28 21:42:41 CEST 2006
Author: thomas.heller
Date: Fri Jul 28 21:42:40 2006
New Revision: 50915
Modified:
python/trunk/Modules/_ctypes/callproc.c
Log:
Remove a useless XXX comment.
Cosmetic changes to the code so that the #ifdef _UNICODE block
doesn't mess emacs code formatting.
Modified: python/trunk/Modules/_ctypes/callproc.c
==============================================================================
--- python/trunk/Modules/_ctypes/callproc.c (original)
+++ python/trunk/Modules/_ctypes/callproc.c Fri Jul 28 21:42:40 2006
@@ -851,17 +851,17 @@
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);
More information about the Python-checkins
mailing list