Update of /cvsroot/pywin32/pywin32/com/win32com/client
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20700/com/win32com/client
Modified Files:
CLSIDToClass.py
Log Message:
remove code supporting pre python-1.4
Index: CLSIDToClass.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/CLSIDToClass.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CLSIDToClass.py 1 Sep 1999 22:58:56 -0000 1.1
--- CLSIDToClass.py 23 Oct 2008 03:40:36 -0000 1.2
***************
*** 37,46 ****
Typically called by makepy generated modules at import time.
"""
! try:
! mapCLSIDToClass.update(dict)
! except AttributeError: # Python 1.4?
! for clsid, pythonClass in dict.items():
! mapCLSIDToClass[clsid] = pythonClass
!
def GetClass(clsid):
"""Given a CLSID, return the globally associated class.
--- 37,42 ----
Typically called by makepy generated modules at import time.
"""
! mapCLSIDToClass.update(dict)
!
def GetClass(clsid):
"""Given a CLSID, return the globally associated class.
|