summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-04 07:05:48 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-04 07:05:48 (GMT)
commit2e229e025c5be101fbaaa5ace453fd78e5bffdd1 (patch)
tree3d27e7ce920be5dd85f11e7f2a886f66aaded2ff /Modules/_ctypes
parent9fa84b202e56ac9b240d34562efa458a05cbe3dc (diff)
downloadcpython-2e229e025c5be101fbaaa5ace453fd78e5bffdd1.zip
cpython-2e229e025c5be101fbaaa5ace453fd78e5bffdd1.tar.gz
cpython-2e229e025c5be101fbaaa5ace453fd78e5bffdd1.tar.bz2
Issue #23338: Fixed formatting ctypes error messages on Cygwin.
Patch by Makoto Kato.
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r--Modules/_ctypes/_ctypes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 14ec4ce..558abe3 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -593,7 +593,7 @@ CDataType_in_dll(PyObject *type, PyObject *args)
#ifdef __CYGWIN__
/* dlerror() isn't very helpful on cygwin */
PyErr_Format(PyExc_ValueError,
- "symbol '%s' not found (%s) ",
+ "symbol '%s' not found",
name);
#else
PyErr_SetString(PyExc_ValueError, ctypes_dlerror());
@@ -3279,7 +3279,7 @@ PyCFuncPtr_FromDll(PyTypeObject *type, PyObject *args, PyObject *kwds)
#ifdef __CYGWIN__
/* dlerror() isn't very helpful on cygwin */
PyErr_Format(PyExc_AttributeError,
- "function '%s' not found (%s) ",
+ "function '%s' not found",
name);
#else
PyErr_SetString(PyExc_AttributeError, ctypes_dlerror());