[pywin32-checkins] pywin32/Pythonwin/pywin/framework scriptutils.py, 1.18, 1.19
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-10-23 03:42:46
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20915/Pythonwin/pywin/framework Modified Files: scriptutils.py Log Message: Move to exception attributes. Index: scriptutils.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/scriptutils.py,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** scriptutils.py 11 Aug 2008 00:38:28 -0000 1.18 --- scriptutils.py 23 Oct 2008 03:42:43 -0000 1.19 *************** *** 263,268 **** try: f = open(script) ! except IOError, (code, msg): ! win32ui.MessageBox("The file could not be opened - %s (%d)" % (msg, code)) return --- 263,268 ---- try: f = open(script) ! except IOError, exc: ! win32ui.MessageBox("The file could not be opened - %s (%d)" % (exc.strerror, exc.errno)) return |