summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-09-29 14:51:42 +0000
committerBrian Curtin <brian.curtin@gmail.com>2010-09-29 14:51:42 +0000
commitacfe3a0b02603a79b50ff34eec0e704b98f4b9c7 (patch)
tree905fcda28cb0c5fe25f534530cc983064418a2ae
parent6eab992ecba8d1b47a96f75c81979dd908c70919 (diff)
downloadcpython-acfe3a0b02603a79b50ff34eec0e704b98f4b9c7.tar.gz
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.
-rw-r--r--Lib/test/win_console_handler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/win_console_handler.py b/Lib/test/win_console_handler.py
index 17bbe1af48..3c2bfa1529 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"""