cpython: 1f28c8cca671 (original) (raw)
Mercurial > cpython
changeset 95429:1f28c8cca671 2.7
Issue #23338: Fixed formatting ctypes error messages on Cygwin. Patch by Makoto Kato. [#23338]
Serhiy Storchaka storchaka@gmail.com | |
---|---|
date | Sat, 04 Apr 2015 10:05:35 +0300 |
parents | 912719dd684f |
children | 20c348914b22 |
files | Misc/ACKS Misc/NEWS Modules/_ctypes/_ctypes.c |
diffstat | 3 files changed, 6 insertions(+), 2 deletions(-)[+] [-] Misc/ACKS 1 Misc/NEWS 3 Modules/_ctypes/_ctypes.c 4 |
line wrap: on
line diff
--- a/Misc/ACKS +++ b/Misc/ACKS @@ -685,6 +685,7 @@ Janne Karila Per Øyvind Karlsen Anton Kasyanov Lou Kates +Makoto Kato Hiroaki Kawai Brian Kearns Sebastien Keim
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -21,6 +21,9 @@ Core and Builtins Library ------- +- Issue #23338: Fixed formatting ctypes error messages on Cygwin.
- Issue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and arbitrary precision integers added in Tcl 8.5.
--- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -642,7 +642,7 @@ CDataType_in_dll(PyObject type, PyObjec #ifdef CYGWIN / dlerror() isn't very helpful on cygwin */ PyErr_Format(PyExc_ValueError,
"symbol '%s' not found (%s) ",[](#l3.7)
"symbol '%s' not found",[](#l3.8) name);[](#l3.9)
#else PyErr_SetString(PyExc_ValueError, ctypes_dlerror()); @@ -3393,7 +3393,7 @@ PyCFuncPtr_FromDll(PyTypeObject type, P #ifdef CYGWIN / dlerror() isn't very helpful on cygwin */ PyErr_Format(PyExc_AttributeError,
"function '%s' not found (%s) ",[](#l3.16)
"function '%s' not found",[](#l3.17) name);[](#l3.18)
#else PyErr_SetString(PyExc_AttributeError, ctypes_dlerror());