[pywin32-checkins] pywin32/Pythonwin/pywin/tools TraceCollector.py,1.2,1.3
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2004-04-09 11:43:47
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30320/Pythonwin/pywin/tools Modified Files: TraceCollector.py Log Message: Replace '\0' characters, as these tend to screw us up! Index: TraceCollector.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/tools/TraceCollector.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TraceCollector.py 18 Dec 2002 04:24:36 -0000 1.2 --- TraceCollector.py 9 Apr 2004 11:30:25 -0000 1.3 *************** *** 18,22 **** rc = win32event.WaitForMultipleObjects((handle, stopEvent), 0, win32event.INFINITE) if rc == win32event.WAIT_OBJECT_0: ! file.write(win32trace.read()) else: # Stop event --- 18,23 ---- rc = win32event.WaitForMultipleObjects((handle, stopEvent), 0, win32event.INFINITE) if rc == win32event.WAIT_OBJECT_0: ! # About the only char we can't live with is \0! ! file.write(win32trace.read().replace("\0", "<null>")) else: # Stop event |