[Python-checkins] python/dist/src/Lib textwrap.py,1.7,1.8

gward@users.sourceforge.net gward@users.sourceforge.net
Sat, 08 Jun 2002 17:22:10 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv3203

Modified Files:
	textwrap.py 
Log Message:
Make all of TextWrapper's options keyword args to the constructor.


Index: textwrap.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/textwrap.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** textwrap.py	7 Jun 2002 22:40:23 -0000	1.7
--- textwrap.py	9 Jun 2002 00:22:07 -0000	1.8
***************
*** 61,69 ****
  
  
!     def __init__ (self):
!         self.expand_tabs = True
!         self.replace_whitespace = True
!         self.fix_sentence_endings = False
!         self.break_long_words = True
          
  
--- 61,73 ----
  
  
!     def __init__ (self,
!                   expand_tabs=True,
!                   replace_whitespace=True,
!                   fix_sentence_endings=False,
!                   break_long_words=True):
!         self.expand_tabs = expand_tabs
!         self.replace_whitespace = replace_whitespace
!         self.fix_sentence_endings = fix_sentence_endings
!         self.break_long_words = break_long_words