Commit b3144d24 authored by Greg Ward's avatar Greg Ward

Use True/False instead of 1/0.

parent 10010f7b
...@@ -14,7 +14,7 @@ class TextWrapper: ...@@ -14,7 +14,7 @@ class TextWrapper:
If you want to completely replace the main wrapping algorithm, If you want to completely replace the main wrapping algorithm,
you'll probably have to override _wrap_chunks(). you'll probably have to override _wrap_chunks().
Several instance attributes control various aspects of Several boolean instance attributes control various aspects of
wrapping: wrapping:
expand_tabs (default: true) expand_tabs (default: true)
Expand tabs in input text to spaces before further processing. Expand tabs in input text to spaces before further processing.
...@@ -57,10 +57,10 @@ class TextWrapper: ...@@ -57,10 +57,10 @@ class TextWrapper:
def __init__ (self): def __init__ (self):
self.expand_tabs = 1 self.expand_tabs = True
self.replace_whitespace = 1 self.replace_whitespace = True
self.fix_sentence_endings = 0 self.fix_sentence_endings = False
self.break_long_words = 1 self.break_long_words = True
# -- Private methods ----------------------------------------------- # -- Private methods -----------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment