[Python-3000-checkins] r57768 - python/branches/py3k/Lib/idlelib/IOBinding.py
kurt.kaiser
python-3000-checkins at python.org
Thu Aug 30 23:00:19 CEST 2007
Author: kurt.kaiser
Date: Thu Aug 30 23:00:19 2007
New Revision: 57768
Modified:
python/branches/py3k/Lib/idlelib/IOBinding.py
Log:
Don't ascii encode eol_convention. Was causing file write to fail.
Modified: python/branches/py3k/Lib/idlelib/IOBinding.py
==============================================================================
--- python/branches/py3k/Lib/idlelib/IOBinding.py (original)
+++ python/branches/py3k/Lib/idlelib/IOBinding.py Thu Aug 30 23:00:19 2007
@@ -249,9 +249,6 @@
firsteol = self.eol_re.search(chars)
if firsteol:
self.eol_convention = firsteol.group(0)
- if isinstance(self.eol_convention, str):
- # Make sure it is an ASCII string
- self.eol_convention = self.eol_convention.encode("ascii")
chars = self.eol_re.sub(r"\n", chars)
self.text.delete("1.0", "end")
self.set_filename(None)
More information about the Python-3000-checkins
mailing list