[Zope-Checkins] SVN: Zope/trunk/lib/python/Signals/WinSignalHandler.py Merge critical Windows fix from Zope/tags/Zope-2-8-0-b2, rev 30651.

Tim Peters tim.one at comcast.net
Sun Jun 5 13:14:16 EDT 2005


Log message for revision 30652:
  Merge critical Windows fix from Zope/tags/Zope-2-8-0-b2, rev 30651.
  
  Mark Hammond's original checkin comment:
  
  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
  

Changed:
  U   Zope/trunk/lib/python/Signals/WinSignalHandler.py

-=-
Modified: Zope/trunk/lib/python/Signals/WinSignalHandler.py
===================================================================
--- Zope/trunk/lib/python/Signals/WinSignalHandler.py	2005-06-05 17:10:06 UTC (rev 30651)
+++ Zope/trunk/lib/python/Signals/WinSignalHandler.py	2005-06-05 17:14:16 UTC (rev 30652)
@@ -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
 
 import logging



More information about the Zope-Checkins mailing list