Update of /cvsroot/pywin32/pywin32/com/win32com/client
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28542
Modified Files:
genpy.py
Log Message:
worm around http://www.python.org/sf/1163244 by not generating a 'coding'
line for Python 2.4+. This is temporary and will be reverted once that
bug is fixed.
Index: genpy.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/genpy.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** genpy.py 13 Feb 2005 12:05:46 -0000 1.45
--- genpy.py 12 Apr 2005 04:27:08 -0000 1.46
***************
*** 782,786 ****
# until I get to the bottom of this, don't generate
# a coding line when frozen.
! if not hasattr(sys, "frozen") and sys.platform.startswith("win"):
print >> self.file, '# -*- coding: mbcs -*-' # Is this always correct?
print >> self.file, '# Created by makepy.py version %s' % (makepy_version,)
--- 782,789 ----
# 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,)
|