Don't ascii encode eol_convention. Was causing file write to fail.

This commit is contained in:
Kurt B. Kaiser 2007-08-30 21:00:19 +00:00
parent 234a34a564
commit 623d372147
1 changed files with 0 additions and 3 deletions

View File

@ -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)