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 markroseman, ned.deily, serhiy.storchaka, terry.reedy
Date 2016-07-10.06:03:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468130626.93.0.491337033606.issue27173@psf.upfronthosting.co.za>
In-reply-to
Content
The attached patch has a new function current_colors_and_keys that combines ideas and code from both CurrentTheme and CurrentKeys.  The latter are now trivial wrappers.  It has a new test_config that tests both this function and _warn.

The changes to configdialog were tested 'by hand' by loading config-main.cfg into an editor, applying every theme and keyset combination I could think of, and each time re-loading the user file to see what was written.  The patterns produces were used in testing current_colors_and_keys. These tests and similar configdialog tests could be automated once I revise the user confighandler so it can write to a StringIO.

Barring a reason not to, I plan to apply tomorrow to 3.6 so this gets into alpha 3.  Backports can be done later, maybe after the configdialog tests can be automated.
History
Date User Action Args
2016-07-10 06:03:48terry.reedysetrecipients: + terry.reedy, ned.deily, markroseman, serhiy.storchaka
2016-07-10 06:03:46terry.reedysetmessageid: <1468130626.93.0.491337033606.issue27173@psf.upfronthosting.co.za>
2016-07-10 06:03:46terry.reedylinkissue27173 messages
2016-07-10 06:03:46terry.reedycreate