Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b3144d24
Commit
b3144d24
authored
Jun 07, 2002
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use True/False instead of 1/0.
parent
10010f7b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Lib/textwrap.py
Lib/textwrap.py
+5
-5
No files found.
Lib/textwrap.py
View file @
b3144d24
...
@@ -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 -----------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment