From 926f0da582a01f5c03bcc05919f5dbb6da37c01a Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Wed, 29 Sep 2010 14:51:42 +0000 Subject: 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. --- Lib/test/win_console_handler.py | 4 ++-- 1 file 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""" -- cgit v0.12