--- a/Modules/_ctypes/_ctypes.c 2013-11-17 08:22:55.000000000 +0100 +++ b/Modules/_ctypes/_ctypes.c 2015-03-13 03:09:39.333858300 +0100 @@ -567,7 +567,7 @@ #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()); @@ -3251,7 +3251,7 @@ #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());