Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f8aa133c
Commit
f8aa133c
authored
Apr 04, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #23338: Fixed formatting ctypes error messages on Cygwin.
Patch by Makoto Kato.
parents
a110eb43
2e229e02
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
Modules/_ctypes/_ctypes.c
Modules/_ctypes/_ctypes.c
+2
-2
No files found.
Misc/ACKS
View file @
f8aa133c
...
...
@@ -703,6 +703,7 @@ Janne Karila
Per Øyvind Karlsen
Anton Kasyanov
Lou Kates
Makoto Kato
Hiroaki Kawai
Brian Kearns
Sebastien Keim
...
...
Misc/NEWS
View file @
f8aa133c
...
...
@@ -19,6 +19,9 @@ Core and Builtins
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.
...
...
Modules/_ctypes/_ctypes.c
View file @
f8aa133c
...
...
@@ -593,7 +593,7 @@ CDataType_in_dll(PyObject *type, PyObject *args)
#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 @@ PyCFuncPtr_FromDll(PyTypeObject *type, PyObject *args, PyObject *kwds)
#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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment