[pywin32-checkins] pywin32/Pythonwin/pywin/mfc dialog.py, 1.3, 1.4 object.py, 1.3, 1.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-10-01 14:45:09
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/mfc In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21342/Pythonwin/pywin/mfc Modified Files: dialog.py object.py Log Message: Move to 'new style' exception raising. Index: object.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/mfc/object.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** object.py 10 Jan 2006 04:37:14 -0000 1.3 --- object.py 1 Oct 2008 14:44:53 -0000 1.4 *************** *** 21,29 **** # we dont want this exception if attr[0]!= '_' and attr[-1] != '_': ! raise win32ui.error, "The MFC object has died." except KeyError: # No _obj_ at all - dont report MFC object died when there isnt one! pass ! raise AttributeError, attr def OnAttachedObjectDeath(self): --- 21,29 ---- # we dont want this exception if attr[0]!= '_' and attr[-1] != '_': ! raise win32ui.error("The MFC object has died.") except KeyError: # No _obj_ at all - dont report MFC object died when there isnt one! pass ! raise AttributeError(attr) def OnAttachedObjectDeath(self): Index: dialog.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/mfc/dialog.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** dialog.py 27 Nov 1999 07:57:38 -0000 1.3 --- dialog.py 1 Oct 2008 14:44:53 -0000 1.4 *************** *** 19,23 **** dllid.GetFileName() except AttributeError: ! raise TypeError, "DLL parameter must be None, a filename or a dll object" return dllid --- 19,23 ---- dllid.GetFileName() except AttributeError: ! raise TypeError("DLL parameter must be None, a filename or a dll object") return dllid *************** *** 83,87 **** self.dll=dllFromDll(dllid) if type(dlgID)==type([]): # a template ! raise TypeError, "dlgID parameter must be an integer resource ID" dlg=win32ui.CreatePrintDialog(dlgID, printSetupOnly, flags, parent, --- 83,87 ---- self.dll=dllFromDll(dllid) if type(dlgID)==type([]): # a template ! raise TypeError("dlgID parameter must be an integer resource ID") dlg=win32ui.CreatePrintDialog(dlgID, printSetupOnly, flags, parent, |