[pywin32-checkins] pywin32/com/win32com/client gencache.py,1.21,1.22
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-10-06 13:12:50
|
Update of /cvsroot/pywin32/pywin32/com/win32com/client In directory sc8-pr-cvs1:/tmp/cvs-serv30079 Modified Files: gencache.py Log Message: Remove old, unused code. Index: gencache.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/gencache.py,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** gencache.py 16 Sep 2003 04:55:27 -0000 1.21 --- gencache.py 6 Oct 2003 13:12:46 -0000 1.22 *************** *** 232,256 **** modName = GetGeneratedFileName(typelibCLSID, lcid, major, minor) return _GetModule(modName) - ############## - typelibCLSID = str(typelibCLSID) - args = typelibCLSID, lcid, major, minor - args = versionRedirectMap.get(args, args) - modName = GetGeneratedFileName(*args) - try: - return _GetModule(modName) - except ImportError: - # See if we can find a module with a different minor version. - items = [] - for desc in GetGeneratedInfos(): - if str(desc[0])==typelibCLSID and desc[1]==lcid and desc[2]==major: - items.append(desc) - if not items: - raise - # Items are all identical, except for last tuple element - # We want the latest minor version we have - so just sort and grab last - items.sort() - new_minor = items[-1][3] - versionRedirectMap[args] = typelibCLSID, lcid, major, new_minor - return GetModuleForTypelib(typelibCLSID, lcid, major, new_minor) def MakeModuleForTypelib(typelibCLSID, lcid, major, minor, progressInstance = None, bGUIProgress = None, bForDemand = bForDemandDefault, bBuildHidden = 1): --- 232,235 ---- |