[Zope-Checkins] CVS: Packages/Signals - WinSignalHandler.py:1.1.2.2
Mark Hammond
mhammond at skippinet.com.au
Sun Jun 5 06:40:54 EDT 2005
Update of /cvs-repository/Packages/Signals
In directory cvs.zope.org:/tmp/cvs-serv23505
Modified Files:
Tag: Zope-2_7-branch
WinSignalHandler.py
Log Message:
As at pywin32-204, we must ensure pywintypes is the first win32 module
imported in our process, otherwise we can end up with 2 pywintypesxx.dll
instances in our process resulting in:
TypeError: The object is not a PySECURITY_ATTRIBUTES object
=== Packages/Signals/WinSignalHandler.py 1.1.2.1 => 1.1.2.2 ===
--- Packages/Signals/WinSignalHandler.py:1.1.2.1 Tue Apr 12 23:08:56 2005
+++ Packages/Signals/WinSignalHandler.py Sun Jun 5 06:40:53 2005
@@ -48,12 +48,17 @@
import atexit
import Lifetime
+# As at pywin32-204, we must ensure pywintypes is the first win32 module
+# imported in our process, otherwise we can end up with 2 pywintypesxx.dll
+# instances in our process resulting in:
+# TypeError: The object is not a PySECURITY_ATTRIBUTES object
+import pywintypes
+
# SetConsoleCtrlHandler not in early pywin32 versions - Signals.py will
# catch the import error.
from win32api import SetConsoleCtrlHandler
import win32con
import win32event
-import pywintypes
import ntsecuritycon
# PEP 282/Z3 style logging.
More information about the Zope-Checkins
mailing list