Skip to content

Commit e703e0d

Browse files
committed
small mistake for single line
1 parent 520f25f commit e703e0d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/textwrap.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,6 @@ def dedent(text):
431431
if not text:
432432
return text
433433

434-
if "\n" not in text:
435-
return text # Single line has no dedent
436-
437434
lines = text.split("\n")
438435

439436
splitting = os.path.commonprefix(tuple(filter(lambda x: x.lstrip(), lines)))

0 commit comments

Comments
 (0)