[pywin32-checkins] pywin32/com/win32com/client genpy.py,1.54,1.55
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-07-01 00:11:06
|
Update of /cvsroot/pywin32/pywin32/com/win32com/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23746/client Modified Files: genpy.py Log Message: Fix unicode handling in generated file. Index: genpy.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/genpy.py,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** genpy.py 24 May 2008 02:55:34 -0000 1.54 --- genpy.py 1 Jul 2008 00:11:14 -0000 1.55 *************** *** 24,28 **** error = "makepy.error" ! makepy_version = "0.4.97" # Written to generated file. GEN_FULL="full" --- 24,28 ---- error = "makepy.error" ! makepy_version = "0.4.98" # Written to generated file. GEN_FULL="full" *************** *** 214,218 **** use = hex(val) else: ! use = repr(str(val)) print >> stream, "\t%-30s=%-10s # from enum %s" % \ (build.MakePublicAttributeName(name, True), use, enumName) --- 214,218 ---- use = hex(val) else: ! use = repr(val) print >> stream, "\t%-30s=%-10s # from enum %s" % \ (build.MakePublicAttributeName(name, True), use, enumName) *************** *** 783,788 **** self.bHaveWrittenCoClassBaseClass = 0 self.bHaveWrittenEventBaseClass = 0 ! print >> self.file, '# -*- coding: mbcs -*-' # Is this always correct? print >> self.file, '# Created by makepy.py version %s' % (makepy_version,) print >> self.file, '# By python version %s' % \ --- 783,789 ---- self.bHaveWrittenCoClassBaseClass = 0 self.bHaveWrittenEventBaseClass = 0 + encoding = self.file.encoding or "mbcs" ! print >> self.file, '# -*- coding: %s -*-' % (encoding,) print >> self.file, '# Created by makepy.py version %s' % (makepy_version,) print >> self.file, '# By python version %s' % \ |