Issue #23338: Fixed formatting ctypes error messages on Cygwin.

Patch by Makoto Kato.
This commit is contained in:
Serhiy Storchaka 2015-04-04 10:05:48 +03:00
parent 9fa84b202e
commit 2e229e025c
3 changed files with 6 additions and 2 deletions

View file

@ -692,6 +692,7 @@ Janne Karila
Per Øyvind Karlsen Per Øyvind Karlsen
Anton Kasyanov Anton Kasyanov
Lou Kates Lou Kates
Makoto Kato
Hiroaki Kawai Hiroaki Kawai
Sebastien Keim Sebastien Keim
Ryan Kelly Ryan Kelly

View file

@ -24,6 +24,9 @@ Core and Builtins
Library 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 - Issue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and
arbitrary precision integers added in Tcl 8.5. arbitrary precision integers added in Tcl 8.5.

View file

@ -593,7 +593,7 @@ CDataType_in_dll(PyObject *type, PyObject *args)
#ifdef __CYGWIN__ #ifdef __CYGWIN__
/* dlerror() isn't very helpful on cygwin */ /* dlerror() isn't very helpful on cygwin */
PyErr_Format(PyExc_ValueError, PyErr_Format(PyExc_ValueError,
"symbol '%s' not found (%s) ", "symbol '%s' not found",
name); name);
#else #else
PyErr_SetString(PyExc_ValueError, ctypes_dlerror()); PyErr_SetString(PyExc_ValueError, ctypes_dlerror());
@ -3279,7 +3279,7 @@ PyCFuncPtr_FromDll(PyTypeObject *type, PyObject *args, PyObject *kwds)
#ifdef __CYGWIN__ #ifdef __CYGWIN__
/* dlerror() isn't very helpful on cygwin */ /* dlerror() isn't very helpful on cygwin */
PyErr_Format(PyExc_AttributeError, PyErr_Format(PyExc_AttributeError,
"function '%s' not found (%s) ", "function '%s' not found",
name); name);
#else #else
PyErr_SetString(PyExc_AttributeError, ctypes_dlerror()); PyErr_SetString(PyExc_AttributeError, ctypes_dlerror());