changeset: 95431:3eb3a6d45251 parent: 95428:e6654af0fc93 parent: 95430:36eca0b259e2 user: Serhiy Storchaka date: Sat Apr 04 10:06:58 2015 +0300 files: Misc/ACKS Misc/NEWS Modules/_ctypes/_ctypes.c description: Issue #23338: Fixed formatting ctypes error messages on Cygwin. Patch by Makoto Kato. diff -r e6654af0fc93 -r 3eb3a6d45251 Misc/ACKS --- a/Misc/ACKS Sat Apr 04 09:48:17 2015 +0300 +++ b/Misc/ACKS Sat Apr 04 10:06:58 2015 +0300 @@ -703,6 +703,7 @@ Per Øyvind Karlsen Anton Kasyanov Lou Kates +Makoto Kato Hiroaki Kawai Brian Kearns Sebastien Keim diff -r e6654af0fc93 -r 3eb3a6d45251 Misc/NEWS --- a/Misc/NEWS Sat Apr 04 09:48:17 2015 +0300 +++ b/Misc/NEWS Sat Apr 04 10:06:58 2015 +0300 @@ -19,6 +19,9 @@ Library ------- +- Issue #23338: Fixed formatting ctypes error messages on Cygwin. + Patch by Makoto Kato. + - Issue #15582: inspect.getdoc() now follows inheritance chains. - Issue #2175: SAX parsers now support a character stream of InputSource object. diff -r e6654af0fc93 -r 3eb3a6d45251 Modules/_ctypes/_ctypes.c --- a/Modules/_ctypes/_ctypes.c Sat Apr 04 09:48:17 2015 +0300 +++ b/Modules/_ctypes/_ctypes.c Sat Apr 04 10:06:58 2015 +0300 @@ -593,7 +593,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()); @@ -3280,7 +3280,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());