[pywin32-checkins] pywin32/com/win32com/client combrowse.py, 1.9, 1.10
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-04 03:10:07
|
Update of /cvsroot/pywin32/pywin32/com/win32com/client In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22312/win32com/client Modified Files: combrowse.py Log Message: remove use of string module Index: combrowse.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/combrowse.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** combrowse.py 27 Nov 2008 09:42:41 -0000 1.9 --- combrowse.py 4 Dec 2008 03:10:02 -0000 1.10 *************** *** 171,175 **** else: try: ! lcid = string.atof(subKey) lcidkey = win32api.RegOpenKey(key, subKey) # Enumerate the platforms --- 171,175 ---- else: try: ! lcid = int(subKey) lcidkey = win32api.RegOpenKey(key, subKey) # Enumerate the platforms *************** *** 207,211 **** extraDescs.append("locale=%s"%lcid) extraDesc = "" ! if extraDescs: extraDesc = " (%s)" % string.join(extraDescs, ", ") ret.append(HLITypeLib(fname, "Type Library" + extraDesc)) ret.sort() --- 207,211 ---- extraDescs.append("locale=%s"%lcid) extraDesc = "" ! if extraDescs: extraDesc = " (%s)" % ", ".join(extraDescs) ret.append(HLITypeLib(fname, "Type Library" + extraDesc)) ret.sort() *************** *** 440,444 **** flagDescs.append(desc) if flagDescs: ! ret.append(browser.MakeHLI(string.join(flagDescs, ", "), "Function Flags")) return ret --- 440,444 ---- flagDescs.append(desc) if flagDescs: ! ret.append(browser.MakeHLI(", ".join(flagDescs), "Function Flags")) return ret *************** *** 499,503 **** break try: ! versionFlt = string.atof(versionStr) except ValueError: versionFlt = 0 # ???? --- 499,503 ---- break try: ! versionFlt = int(versionStr) except ValueError: versionFlt = 0 # ???? |