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
2e229e02
Commit
2e229e02
authored
Apr 04, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #23338: Fixed formatting ctypes error messages on Cygwin.
Patch by Makoto Kato.
parent
9fa84b20
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 @
2e229e02
...
...
@@ -692,6 +692,7 @@ Janne Karila
Per Øyvind Karlsen
Anton Kasyanov
Lou Kates
Makoto Kato
Hiroaki Kawai
Sebastien Keim
Ryan Kelly
...
...
Misc/NEWS
View file @
2e229e02
...
...
@@ -24,6 +24,9 @@ Core and Builtins
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.
...
...
Modules/_ctypes/_ctypes.c
View file @
2e229e02
...
...
@@ -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
());
...
...
@@ -3279,7 +3279,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