[pywin32-checkins] pywin32/com/win32comext/mapi mapiutil.py, 1.5.4.1, 1.5.4.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-26 09:03:33
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/mapi In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20331/com/win32comext/mapi Modified Files: Tag: py3k mapiutil.py Log Message: many more upgrades to py3k syntax Index: mapiutil.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/mapi/mapiutil.py,v retrieving revision 1.5.4.1 retrieving revision 1.5.4.2 diff -C2 -d -r1.5.4.1 -r1.5.4.2 *** mapiutil.py 23 Oct 2008 09:45:16 -0000 1.5.4.1 --- mapiutil.py 26 Nov 2008 09:03:30 -0000 1.5.4.2 *************** *** 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 |