Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 234a34a commit 623d372Copy full SHA for 623d372
1 file changed
Lib/idlelib/IOBinding.py
@@ -249,9 +249,6 @@ def loadfile(self, filename):
249
firsteol = self.eol_re.search(chars)
250
if firsteol:
251
self.eol_convention = firsteol.group(0)
252
- if isinstance(self.eol_convention, str):
253
- # Make sure it is an ASCII string
254
- self.eol_convention = self.eol_convention.encode("ascii")
255
chars = self.eol_re.sub(r"\n", chars)
256
self.text.delete("1.0", "end")
257
self.set_filename(None)
0 commit comments