PATCH: Fix error-handling in temporary_directory.py
Mark Mitchell
mark at codesourcery.com
Mon Nov 10 08:17:17 UTC 2003
This patch fixes a problem with temporary_directory.py; in particular,
in the case that we cannot create the new temporary directory, we
double-faulted by trying to call "sys.exc_info" whithout having first
imported the "sys" module.
--
Mark Mitchell <mark at codesourcery.com>
CodeSourcery, LLC
-------------- next part --------------
2003-11-09 Mark Mitchell <mark at codesourcery.com>
* qm/temporary_directory.py (sys): Import it.
Index: qm/temporary_directory.py
===================================================================
RCS file: /home/sc/Repository/qm/qm/temporary_directory.py,v
retrieving revision 1.1
diff -c -5 -p -r1.1 temporary_directory.py
*** qm/temporary_directory.py 9 May 2003 22:17:44 -0000 1.1
--- qm/temporary_directory.py 10 Nov 2003 08:08:07 -0000
***************
*** 16,25 ****
--- 16,26 ----
########################################################################
import dircache
import os
import qm
+ import sys
import tempfile
########################################################################
# Classes
########################################################################
More information about the qmtest
mailing list