Skip to content

Commit fad98a2

Browse files
committed
Use lstrip instead of strip
1 parent 6ee731c commit fad98a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/textwrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def indent(text, prefix, predicate=None):
476476
consist solely of whitespace characters.
477477
"""
478478
if predicate is None:
479-
predicate = str.strip
479+
predicate = str.lstrip
480480

481481
prefixed_lines = []
482482
for line in text.splitlines(True):

0 commit comments

Comments
 (0)