From df9386940a0104ba4dce1beee38848bc44a17036 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Tue, 16 Dec 2014 03:21:26 -0500 Subject: Issue #20577: move configuration of FormatParagraph extension to new extension configuration dialog. Patch by Tal Einat. --- Lib/idlelib/FormatParagraph.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Lib/idlelib/FormatParagraph.py') diff --git a/Lib/idlelib/FormatParagraph.py b/Lib/idlelib/FormatParagraph.py index 9b10c0a760..7a9d185042 100644 --- a/Lib/idlelib/FormatParagraph.py +++ b/Lib/idlelib/FormatParagraph.py @@ -44,9 +44,11 @@ class FormatParagraph: The length limit parameter is for testing with a known value. """ - if limit == None: + if limit is None: + # The default length limit is that defined by pep8 limit = idleConf.GetOption( - 'main', 'FormatParagraph', 'paragraph', type='int') + 'extensions', 'FormatParagraph', 'max-width', + type='int', default=72) text = self.editwin.text first, last = self.editwin.get_selection_indices() if first and last: -- cgit v1.2.1