[pywin32-checkins] pywin32/com/win32com/client genpy.py,1.57,1.58
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-27 03:53:31
|
Update of /cvsroot/pywin32/pywin32/com/win32com/client In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv31031/com/win32com/client Modified Files: genpy.py Log Message: Replace backticks with explicit repr() calls. Index: genpy.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/genpy.py,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** genpy.py 26 Nov 2008 01:46:30 -0000 1.57 --- genpy.py 27 Nov 2008 03:53:25 -0000 1.58 *************** *** 831,835 **** print >> self.file, '"""' + docDesc + '"""' ! print >> self.file, 'makepy_version =', `makepy_version` print >> self.file, 'python_version = 0x%x' % (sys.hexversion,) print >> self.file --- 831,835 ---- print >> self.file, '"""' + docDesc + '"""' ! print >> self.file, 'makepy_version =', repr(makepy_version) print >> self.file, 'python_version = 0x%x' % (sys.hexversion,) print >> self.file *************** *** 896,902 **** for record in recordItems.itervalues(): if str(record.clsid) == pythoncom.IID_NULL: ! print >> stream, "\t###%s: %s, # Typedef disabled because it doesn't have a non-null GUID" % (`record.doc[0]`, `str(record.clsid)`) else: ! print >> stream, "\t%s: %s," % (`record.doc[0]`, `str(record.clsid)`) print >> stream, "}" print >> stream --- 896,902 ---- for record in recordItems.itervalues(): if str(record.clsid) == pythoncom.IID_NULL: ! print >> stream, "\t###%s: %s, # Typedef disabled because it doesn't have a non-null GUID" % (repr(record.doc[0]), repr(str(record.clsid))) else: ! print >> stream, "\t%s: %s," % (repr(record.doc[0]), repr(str(record.clsid))) print >> stream, "}" print >> stream *************** *** 923,927 **** for item in oleItems.values(): if item is not None: ! print >> stream, "\t'%s' : %s," % (str(item.clsid), `item.python_name`) print >> stream, '}' print >> stream, "VTablesToClassMap = {}" --- 923,927 ---- for item in oleItems.values(): if item is not None: ! print >> stream, "\t'%s' : %s," % (str(item.clsid), repr(item.python_name)) print >> stream, '}' print >> stream, "VTablesToClassMap = {}" |