]> granicus.if.org Git - python/commit
Make 'width' an instance attribute rather than an argument to the wrap()
authorGreg Ward <gward@python.net>
Mon, 10 Jun 2002 20:26:02 +0000 (20:26 +0000)
committerGreg Ward <gward@python.net>
Mon, 10 Jun 2002 20:26:02 +0000 (20:26 +0000)
commitd34c959140a4563c644ed4eaca2c489d8f1577b5
treec294ae4e932bac349291b4234fc87850e071b31c
parent4f7829e185db9250349917a27be557721b1752ed
Make 'width' an instance attribute rather than an argument to the wrap()
and fill() methods.  Keep interface of existing wrap() and fill()
functions by going back to having them construct a new TextWrapper
instance on each call, with the preferred width passed to the
constructor.
Lib/textwrap.py