[pywin32-checkins] pywin32/com/win32com/client genpy.py,1.37,1.38
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2004-03-31 23:37:44
|
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,) |