diff options
| author | Brian Curtin <brian.curtin@gmail.com> | 2010-09-29 14:56:32 (GMT) |
|---|---|---|
| committer | Brian Curtin <brian.curtin@gmail.com> | 2010-09-29 14:56:32 (GMT) |
| commit | a02653b38a142f844e6263b649134563cd6d28b1 (patch) | |
| tree | 73fa9a1820b61a4abbc99b1b692a5ca66b9695ca /Lib/test/win_console_handler.py | |
| parent | 66bfda800714cc34294c475066b285dbd169bd23 (diff) | |
| download | cpython-a02653b38a142f844e6263b649134563cd6d28b1.zip cpython-a02653b38a142f844e6263b649134563cd6d28b1.tar.gz cpython-a02653b38a142f844e6263b649134563cd6d28b1.tar.bz2 | |
Merged revisions 85109 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85109 | brian.curtin | 2010-09-29 09:51:42 -0500 (Wed, 29 Sep 2010) | 4 lines
Fix #9978. WINFUNCTYPE is from ctypes, not from ctypes.wintypes.
r85073 changed the importing in wintypes to not use *, so the previous
usage here became even more incorrect.
........
Diffstat (limited to 'Lib/test/win_console_handler.py')
| -rw-r--r-- | Lib/test/win_console_handler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/win_console_handler.py b/Lib/test/win_console_handler.py index 17bbe1a..3c2bfa1 100644 --- a/Lib/test/win_console_handler.py +++ b/Lib/test/win_console_handler.py @@ -8,12 +8,12 @@ See http://msdn.microsoft.com/en-us/library/ms685049%28v=VS.85%29.aspx for a similar example in C. """ -from ctypes import wintypes +from ctypes import wintypes, WINFUNCTYPE import signal import ctypes # Function prototype for the handler function. Returns BOOL, takes a DWORD. -HandlerRoutine = wintypes.WINFUNCTYPE(wintypes.BOOL, wintypes.DWORD) +HandlerRoutine = WINFUNCTYPE(wintypes.BOOL, wintypes.DWORD) def _ctrl_handler(sig): """Handle a sig event and return 0 to terminate the process""" |
