diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2007-08-30 21:00:19 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2007-08-30 21:00:19 (GMT) |
commit | 623d3721478d2383284a1b859aa8c3a74f271e28 (patch) | |
tree | a35fed61b85d5080edf41da0ba17ed25becb0cb0 /Lib/idlelib | |
parent | 234a34a564aa74e6ff6433e6c66ac2ad01401dca (diff) | |
download | cpython-623d3721478d2383284a1b859aa8c3a74f271e28.zip cpython-623d3721478d2383284a1b859aa8c3a74f271e28.tar.gz cpython-623d3721478d2383284a1b859aa8c3a74f271e28.tar.bz2 |
Don't ascii encode eol_convention. Was causing file write to fail.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/IOBinding.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index dd51062..e1ca20d 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -249,9 +249,6 @@ class IOBinding: 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) |