PATCH: Fix typo in error-handling
Mark Mitchell
mark at codesourcery.com
Thu Nov 13 01:56:19 UTC 2003
This patch fixes a typo in an exception-handler.
--
Mark Mitchell <mark at codesourcery.com>
CodeSourcery, LLC
-------------- next part --------------
2003-11-12 Mark Mitchell <mark at codesourcery.com>
* qm/common.py (open_temporary_file): Fix typo.
Index: qm/common.py
===================================================================
RCS file: /home/sc/Repository/qm/qm/common.py,v
retrieving revision 1.75
diff -c -5 -p -r1.75 common.py
*** qm/common.py 14 Oct 2003 21:56:06 -0000 1.75
--- qm/common.py 12 Nov 2003 22:07:05 -0000
*************** def open_temporary_file_fd():
*** 514,524 ****
fd = os.open(file_name,
os.O_CREAT | os.O_EXCL | os.O_RDWR,
0600)
except:
exc_info = sys.exc_info()
! raise common.QMException, \
qm.error("temp file error",
file_name=file_name,
exc_class=str(exc_info[0]),
exc_arg=str(exc_info[1]))
return (file_name, fd)
--- 514,524 ----
fd = os.open(file_name,
os.O_CREAT | os.O_EXCL | os.O_RDWR,
0600)
except:
exc_info = sys.exc_info()
! raise QMException, \
qm.error("temp file error",
file_name=file_name,
exc_class=str(exc_info[0]),
exc_arg=str(exc_info[1]))
return (file_name, fd)
More information about the qmtest
mailing list