Skip to content

Commit c7cd5ce

Browse files
committed
updated variable name
1 parent da9e65c commit c7cd5ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/textwrap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,8 @@ def dedent(text):
433433

434434
lines = text.split("\n")
435435

436-
splitting = os.path.commonprefix(tuple(filter(lambda x: x.lstrip(), lines)))
437-
margin_len = len(splitting) - len(splitting.lstrip())
436+
margin = os.path.commonprefix(tuple(filter(lambda x: x.lstrip(), lines)))
437+
margin_len = len(margin) - len(margin.lstrip())
438438

439439
return "\n".join([line[margin_len:] if line.lstrip() else "\n" if line.endswith("\n") else "" for line in lines])
440440

0 commit comments

Comments
 (0)