Kaydet (Commit) f8aa133c authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

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

Patch by Makoto Kato.
...@@ -703,6 +703,7 @@ Janne Karila ...@@ -703,6 +703,7 @@ Janne Karila
Per Øyvind Karlsen Per Øyvind Karlsen
Anton Kasyanov Anton Kasyanov
Lou Kates Lou Kates
Makoto Kato
Hiroaki Kawai Hiroaki Kawai
Brian Kearns Brian Kearns
Sebastien Keim Sebastien Keim
......
...@@ -19,6 +19,9 @@ Core and Builtins ...@@ -19,6 +19,9 @@ Core and Builtins
Library Library
------- -------
- Issue #23338: Fixed formatting ctypes error messages on Cygwin.
Patch by Makoto Kato.
- Issue #15582: inspect.getdoc() now follows inheritance chains. - Issue #15582: inspect.getdoc() now follows inheritance chains.
- Issue #2175: SAX parsers now support a character stream of InputSource object. - Issue #2175: SAX parsers now support a character stream of InputSource object.
......
...@@ -593,7 +593,7 @@ CDataType_in_dll(PyObject *type, PyObject *args) ...@@ -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());
...@@ -3280,7 +3280,7 @@ PyCFuncPtr_FromDll(PyTypeObject *type, PyObject *args, PyObject *kwds) ...@@ -3280,7 +3280,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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment