diff options
author | Greg Ward <gward@python.net> | 2002-06-07 22:35:41 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2002-06-07 22:35:41 (GMT) |
commit | 70c726aa44c707eef41234244f30e9a654c44f02 (patch) | |
tree | f7ea94298d1c563e27d77c348c6b60b559d7f67d /Lib/textwrap.py | |
parent | f404c7ee84526f77578f6b6bec20a011a1f4cb57 (diff) | |
download | cpython-70c726aa44c707eef41234244f30e9a654c44f02.zip cpython-70c726aa44c707eef41234244f30e9a654c44f02.tar.gz cpython-70c726aa44c707eef41234244f30e9a654c44f02.tar.bz2 |
Use True/False instead of 1/0.
Diffstat (limited to 'Lib/textwrap.py')
-rw-r--r-- | Lib/textwrap.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/textwrap.py b/Lib/textwrap.py index 3ffb2f4..787d943 100644 --- a/Lib/textwrap.py +++ b/Lib/textwrap.py @@ -14,7 +14,7 @@ class TextWrapper: If you want to completely replace the main wrapping algorithm, you'll probably have to override _wrap_chunks(). - Several instance attributes control various aspects of + Several boolean instance attributes control various aspects of wrapping: expand_tabs (default: true) Expand tabs in input text to spaces before further processing. @@ -57,10 +57,10 @@ class TextWrapper: def __init__ (self): - self.expand_tabs = 1 - self.replace_whitespace = 1 - self.fix_sentence_endings = 0 - self.break_long_words = 1 + self.expand_tabs = True + self.replace_whitespace = True + self.fix_sentence_endings = False + self.break_long_words = True # -- Private methods ----------------------------------------------- |