[pywin32-checkins] pywin32/win32/Demos win32gui_dialog.py,1.8,1.9
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-26 08:56:40
|
Update of /cvsroot/pywin32/pywin32/win32/Demos In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv19784/Demos Modified Files: win32gui_dialog.py Log Message: modernize syntax: all remaining raise statements in win32/* upgraded Index: win32gui_dialog.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Demos/win32gui_dialog.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** win32gui_dialog.py 3 Oct 2008 01:03:56 -0000 1.8 --- win32gui_dialog.py 26 Nov 2008 08:56:33 -0000 1.9 *************** *** 46,55 **** for name, val in kw.items(): if not self.__dict__.has_key(name): ! raise ValueError, "LVITEM structures do not have an item '%s'" % (name,) self.__dict__[name] = val def __setattr__(self, attr, val): if not attr.startswith("_") and not self.__dict__.has_key(attr): ! raise AttributeError, attr self.__dict__[attr] = val --- 46,55 ---- for name, val in kw.items(): if not self.__dict__.has_key(name): ! raise ValueError("LVITEM structures do not have an item '%s'" % (name,)) self.__dict__[name] = val def __setattr__(self, attr, val): if not attr.startswith("_") and not self.__dict__.has_key(attr): ! raise AttributeError(attr) self.__dict__[attr] = val |