[pywin32-checkins] pywin32/com/win32com/server dispatcher.py,1.3,1.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-11-08 00:38:48
|
Update of /cvsroot/pywin32/pywin32/com/win32com/server In directory sc8-pr-cvs1:/tmp/cvs-serv25479 Modified Files: dispatcher.py Log Message: The default debug dispatcher is the win32trace based dispatcher only if win32trace is actually available - otherwise the simple 'print' based dispatcher (which is fairly useless when there is no console, but better than failing to create the COM object at all!) Index: dispatcher.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/server/dispatcher.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** dispatcher.py 8 Oct 2003 23:46:10 -0000 1.3 --- dispatcher.py 8 Nov 2003 00:38:44 -0000 1.4 *************** *** 236,238 **** raise t, v, tb ! DefaultDebugDispatcher = DispatcherWin32trace --- 236,242 ---- raise t, v, tb ! try: ! import win32trace ! DefaultDebugDispatcher = DispatcherWin32trace ! except ImportError: # no win32trace module - just use a print based one. ! DefaultDebugDispatcher = DispatcherTrace |