Kaydet (Commit) 623d3721 authored tarafından Kurt B. Kaiser's avatar Kurt B. Kaiser

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

üst 234a34a5
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment