homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients SilentGhost, Tomk, ingrid, jesstess, kbk, markroseman, roger.serwy, terry.reedy
Date 2016年11月11日.21:26:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478899609.01.0.46756924707.issue21973@psf.upfronthosting.co.za>
In-reply-to
Content
I closed #28658 in favor of this. For that issue, the exception was a UnicodeDecodeError instead of a configparser.Error. Both should be caught.
Ingrid, sorry I never got back to this. A few months ago, Serhiy wrote a warning function for the config(Handler) function that was included in a larger patch for the module. I wrote a test_config that test both the warning function and the other new code. This was for 3.6 only.
I am going to patch the lowest level IDLE function, IDLEConfigParser.Load, which currently calls ConfigParser.read, and catch exceptions and call the warning function right there. For 2.7 and 3.5, I will make a minimal change, and test by hand (by editing errors into one of my user config files). For 3.6/7, I will try replacing .read (which reads a list of files) with .read_file (which reads one file).
History
Date User Action Args
2016年11月11日 21:26:49terry.reedysetrecipients: + terry.reedy, kbk, roger.serwy, SilentGhost, markroseman, jesstess, ingrid, Tomk
2016年11月11日 21:26:49terry.reedysetmessageid: <1478899609.01.0.46756924707.issue21973@psf.upfronthosting.co.za>
2016年11月11日 21:26:48terry.reedylinkissue21973 messages
2016年11月11日 21:26:48terry.reedycreate

AltStyle によって変換されたページ (->オリジナル) /