◐ Shell
clean mode source ↗

Message 279340 - Python tracker

idlelib.configdialog uses the British spelling 'colour' instead of the American spelling 'color' everywhere except for externally mandated import and parameter names and in some recent comments.  idlelib uses 'color' everywhere else.

# change 'colour' to 'color' in idlelib.configdialog 3.6
with open('F:/python/dev/36/lib/idlelib/configdialog.py', 'r+') as f:
    code = f.read().replace('Colour', 'Color').replace('colour', 'color')
    f.seek(0); f.truncate()
    f.write(code)

produces the attached patch.  I would like to apply this before 3.6.0rc.  I might wait until a week before that in case I want to backport any configdialog changes to 3.5.  (Any such changes might require regenerating the patch.)