Log message for revision 30653:
  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/branches/Zope-2_8-branch/lib/python/Signals/WinSignalHandler.py

-=-
Modified: Zope/branches/Zope-2_8-branch/lib/python/Signals/WinSignalHandler.py
===================================================================
--- Zope/branches/Zope-2_8-branch/lib/python/Signals/WinSignalHandler.py        
2005-06-05 17:14:16 UTC (rev 30652)
+++ Zope/branches/Zope-2_8-branch/lib/python/Signals/WinSignalHandler.py        
2005-06-05 17:27:20 UTC (rev 30653)
@@ -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

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to