]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backporting revision 1.6:
authorBarry Warsaw <barry@python.org>
Mon, 26 Jan 2004 18:40:49 +0000 (18:40 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 26 Jan 2004 18:40:49 +0000 (18:40 +0000)
    don't wrap lines too late by default
    closes SF bug #842213

But I think Fred meant "too long" :)

Lib/optparse.py

index f8e3394c9834c3f368771894bfe1ed5fb88b1032..b89a6ce7dfb806a90df53c0854932998d00fdb3b 100644 (file)
@@ -247,7 +247,7 @@ class IndentedHelpFormatter (HelpFormatter):
     def __init__ (self,
                   indent_increment=2,
                   max_help_position=24,
-                  width=80,
+                  width=79,
                   short_first=1):
         HelpFormatter.__init__(
             self, indent_increment, max_help_position, width, short_first)
@@ -266,7 +266,7 @@ class TitledHelpFormatter (HelpFormatter):
     def __init__ (self,
                   indent_increment=0,
                   max_help_position=24,
-                  width=80,
+                  width=79,
                   short_first=0):
         HelpFormatter.__init__ (
             self, indent_increment, max_help_position, width, short_first)