[Python-checkins] r85105 - python/branches/py3k-issue9978/Lib/test/win_console_handler.py

hirokazu.yamamoto python-checkins at python.org
Wed Sep 29 14:39:06 CEST 2010


Author: hirokazu.yamamoto
Date: Wed Sep 29 14:39:06 2010
New Revision: 85105
Log:
WINFUNCTYPE is not in ctypes.wintypes but in ctypes.
Modified:
 python/branches/py3k-issue9978/Lib/test/win_console_handler.py
Modified: python/branches/py3k-issue9978/Lib/test/win_console_handler.py
==============================================================================
--- python/branches/py3k-issue9978/Lib/test/win_console_handler.py	(original)
+++ python/branches/py3k-issue9978/Lib/test/win_console_handler.py	Wed Sep 29 14:39:06 2010
@@ -19,7 +19,7 @@
 import ctypes
 
 # Function prototype for the handler function. Returns BOOL, takes a DWORD.
- HandlerRoutine = wintypes.WINFUNCTYPE(wintypes.BOOL, wintypes.DWORD)
+ HandlerRoutine = ctypes.WINFUNCTYPE(wintypes.BOOL, wintypes.DWORD)
 
 def _ctrl_handler(sig):
 """Handle a sig event and return 0 to terminate the process"""


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /