Update of /cvsroot/pywin32/pywin32/com/win32com/client
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31445
Modified Files:
genpy.py
Log Message:
Only write 'mbcs' encoding to genpy files on Windows
Index: genpy.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/genpy.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** genpy.py 25 Nov 2003 10:43:10 -0000 1.37
--- genpy.py 31 Mar 2004 23:25:52 -0000 1.38
***************
*** 761,765 ****
# until I get to the bottom of this, don't generate
# a coding line when frozen.
! if not hasattr(sys, "frozen"):
print >> self.file, '# -*- coding: mbcs -*-' # Is this always correct?
print >> self.file, '# Created by makepy.py version %s' % (makepy_version,)
--- 761,765 ----
# 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,)
|