[pywin32-checkins] pywin32/com/win32comext/mapi mapiutil.py, 1.5, 1.6
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-10-02 12:09:59
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/mapi In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16045/com/win32comext/mapi Modified Files: mapiutil.py Log Message: various py3k compatible syntax modernizations merged from py3k branch; unnecessary 'L' suffixes, raise exceptions as objects, types module, etc Index: mapiutil.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/mapi/mapiutil.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** mapiutil.py 20 Jan 2004 01:24:08 -0000 1.5 --- mapiutil.py 2 Oct 2008 12:09:53 -0000 1.6 *************** *** 1,12 **** # General utilities for MAPI and MAPI objects. ! from types import TupleType, ListType, IntType, StringType from pywintypes import UnicodeType, TimeType import pythoncom import mapi, mapitags - # Pre 2.2.1 compat. - try: True, False - except NameError: True = 1==1; False = 1==0 - prTable = {} def GetPropTagName(pt): --- 1,12 ---- # General utilities for MAPI and MAPI objects. ! # We used to use these old names from the 'types' module... ! TupleType=tuple ! ListType=list ! IntType=int ! StringType=str from pywintypes import UnicodeType, TimeType import pythoncom import mapi, mapitags prTable = {} def GetPropTagName(pt): |