Skip to content

Commit 76f231a

Browse files
committed
added missing os dependencie
1 parent 7754af3 commit 76f231a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/textwrap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Written by Greg Ward <gward@python.net>
77

88
import re
9+
import os
910

1011
__all__ = ['TextWrapper', 'wrap', 'fill', 'dedent', 'indent', 'shorten']
1112

@@ -431,7 +432,7 @@ def dedent(text):
431432
return text # Single line has no dedent
432433

433434
# Split text into lines, preserving line endings
434-
lines: List[str] = text.splitlines(keepends=True)
435+
lines = text.splitlines(keepends=True)
435436

436437
# Process in a single pass to find:
437438
# 1. Leading whitespace of non-blank lines

0 commit comments

Comments
 (0)