[issue21139] Idle: change default reformat width from 70 to 72
Terry J. Reedy
report at bugs.python.org
Wed Apr 16 06:43:51 CEST 2014
Terry J. Reedy added the comment:
I am puzzled at the differences between the 2.7 and 3.4 patches. There are only three differences between the files
- from Tkinter import Tk, Text, TclError
+ from tkinter import Tk, Text, TclError
? ^
- from test.test_support import requires
+ from test.support import requires
? ^
- get_selection_indices = EditorWindow.get_selection_indices.im_func
+ get_selection_indices = EditorWindow. get_selection_indices
and none of these should affect the patch.
The attached patch adds a limit parameter to the FormatParagraph.format_paragraph_event method ReformatParagraph.py that is called as self.formatter in the tests.
cls.formatter = fp.FormatParagraph(editor).format_paragraph_event
With this change, we can augment the calls to
self.formatter('ParameterDoesNothing', 72)
and the tests will ignore the configured value.
----------
Added file: http://bugs.python.org/file34904/21139-34-fpe.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21139>
_______________________________________
More information about the Python-bugs-list
mailing list