Author nirinA raseliarison
Recipients nirinA raseliarison, terry.reedy
Date 2020-07-15.01:23:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594776211.42.0.863093629881.issue41300@roundup.psfhosted.org>
In-reply-to
Content
idle cannot save file with non ascii character, leading to:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib64/python3.8/tkinter/__init__.py", line 1883, in __call__
    return self.func(*args)
  File "/usr/lib64/python3.8/idlelib/multicall.py", line 176, in handler
    r = l[i](event)
  File "/usr/lib64/python3.8/idlelib/iomenu.py", line 199, in save
    else:
  File "/usr/lib64/python3.8/idlelib/iomenu.py", line 232, in writefile
    text = self.fixnewlines()
  File "/usr/lib64/python3.8/idlelib/iomenu.py", line 271, in encode
    encoded = chars.encode('ascii', 'replace')
NameError: name 'io' is not defined

just adding `import io` seems to fix this.
History
Date User Action Args
2020-07-15 01:23:31nirinA raseliarisonsetrecipients: + nirinA raseliarison, terry.reedy
2020-07-15 01:23:31nirinA raseliarisonsetmessageid: <1594776211.42.0.863093629881.issue41300@roundup.psfhosted.org>
2020-07-15 01:23:31nirinA raseliarisonlinkissue41300 messages
2020-07-15 01:23:31nirinA raseliarisoncreate