Update of /cvsroot/pywin32/pywin32/com/win32com/client
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23594/com/win32com/client
Modified Files:
genpy.py
Log Message:
Remove the work around for Python bug 1163244 - Python 2.4 now gets the
'encoding' line again.
Index: genpy.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/genpy.py,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** genpy.py 20 Sep 2005 12:46:46 -0000 1.48
--- genpy.py 29 Nov 2005 02:16:35 -0000 1.49
***************
*** 24,28 ****
error = "makepy.error"
! makepy_version = "0.4.94" # Written to generated file.
GEN_FULL="full"
--- 24,28 ----
error = "makepy.error"
! makepy_version = "0.4.95" # Written to generated file.
GEN_FULL="full"
***************
*** 784,795 ****
self.bHaveWrittenEventBaseClass = 0
! # encodings were giving me grief with McMillan's Installer
! # until I get to the bottom of this, don't generate
! # a coding line when frozen.
! # *sigh* - and see http://www.python.org/sf/1163244 which is causing
! # problems for 2.4+ - avoiding a coding line seems to avoid it.
! if not hasattr(sys, "frozen") and sys.platform.startswith("win") and \
! sys.hexversion < 0x2040000:
! 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' % \
--- 784,788 ----
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' % \
|