Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added missing os dependencie
  • Loading branch information
Marius-Juston committed Mar 27, 2025
commit 76f231a8e3b13d06e7e4767e00029a35e36e318c
3 changes: 2 additions & 1 deletion Lib/textwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Written by Greg Ward <gward@python.net>

import re
import os

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

Expand Down Expand Up @@ -431,7 +432,7 @@ def dedent(text):
return text # Single line has no dedent

# Split text into lines, preserving line endings
lines: List[str] = text.splitlines(keepends=True)
lines = text.splitlines(keepends=True)

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