[Python-checkins] python/dist/src/Lib/idlelib IOBinding.py, 1.19,
1.19.8.1
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Mon Aug 4 23:52:20 EDT 2003
Update of /cvsroot/python/python/dist/src/Lib/idlelib
In directory sc8-pr-cvs1:/tmp/cvs-serv937
Modified Files:
Tag: release23-maint
IOBinding.py
Log Message:
Make sure eol_convention is an ASCII string. Fixes #774680.
Index: IOBinding.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/IOBinding.py,v
retrieving revision 1.19
retrieving revision 1.19.8.1
diff -C2 -d -r1.19 -r1.19.8.1
*** IOBinding.py 14 Jun 2003 17:56:25 -0000 1.19
--- IOBinding.py 5 Aug 2003 05:52:18 -0000 1.19.8.1
***************
*** 253,256 ****
--- 253,259 ----
if firsteol:
self.eol_convention = firsteol.group(0)
+ if isinstance(self.eol_convention, unicode):
+ # Make sure it is an ASCII string
+ self.eol_convention = self.eol_convention.encode("ascii")
chars = self.eol_re.sub(r"\n", chars)
More information about the Python-checkins
mailing list