changeset: 95429:1f28c8cca671 branch: 2.7 parent: 95426:912719dd684f user: Serhiy Storchaka date: Sat Apr 04 10:05:35 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 912719dd684f -r 1f28c8cca671 Misc/ACKS --- a/Misc/ACKS Sat Apr 04 09:47:18 2015 +0300 +++ b/Misc/ACKS Sat Apr 04 10:05:35 2015 +0300 @@ -685,6 +685,7 @@ Per Øyvind Karlsen Anton Kasyanov Lou Kates +Makoto Kato Hiroaki Kawai Brian Kearns Sebastien Keim diff -r 912719dd684f -r 1f28c8cca671 Misc/NEWS --- a/Misc/NEWS Sat Apr 04 09:47:18 2015 +0300 +++ b/Misc/NEWS Sat Apr 04 10:05:35 2015 +0300 @@ -21,6 +21,9 @@ Library ------- +- Issue #23338: Fixed formatting ctypes error messages on Cygwin. + Patch by Makoto Kato. + - Issue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and arbitrary precision integers added in Tcl 8.5. diff -r 912719dd684f -r 1f28c8cca671 Modules/_ctypes/_ctypes.c --- a/Modules/_ctypes/_ctypes.c Sat Apr 04 09:47:18 2015 +0300 +++ b/Modules/_ctypes/_ctypes.c Sat Apr 04 10:05:35 2015 +0300 @@ -642,7 +642,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()); @@ -3393,7 +3393,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());