[pywin32-checkins] pywin32/com/win32comext/mapi mapiutil.py, 1.6, 1.7
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-26 08:52:36
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/mapi In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv19471/win32comext/mapi Modified Files: mapiutil.py Log Message: modernize syntax: all remaining raise statements in com/* upgraded Index: mapiutil.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/mapi/mapiutil.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** mapiutil.py 2 Oct 2008 12:09:53 -0000 1.6 --- mapiutil.py 26 Nov 2008 08:52:32 -0000 1.7 *************** *** 121,125 **** type_tag = _MapiTypeMap.get(type(val)) if type_tag is None: ! raise ValueError, "Don't know what to do with '%r' ('%s')" % (val, type(val)) prop = mapitags.PROP_TAG( type_tag, mapitags.PROP_ID(propIds[0])) if val is None: --- 121,125 ---- type_tag = _MapiTypeMap.get(type(val)) if type_tag is None: ! raise ValueError("Don't know what to do with '%r' ('%s')" % (val, type(val))) prop = mapitags.PROP_TAG( type_tag, mapitags.PROP_ID(propIds[0])) if val is None: *************** *** 159,163 **** tagType = mapitags.PT_SYSTIME else: ! raise ValueError, "The type of object %s(%s) can not be written" % (`val`,type_val) key = mapitags.PROP_TAG(tagType, mapitags.PROP_ID(newIds[newIdNo])) newIdNo = newIdNo + 1 --- 159,163 ---- tagType = mapitags.PT_SYSTIME else: ! raise ValueError("The type of object %s(%s) can not be written" % (`val`,type_val)) key = mapitags.PROP_TAG(tagType, mapitags.PROP_ID(newIds[newIdNo])) newIdNo = newIdNo + 1 |