Skip to content

Commit 9b976ee

Browse files
committed
config: don't lazy import textwrap
Already imported from a bunch of places.
1 parent adb3658 commit 9b976ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/_pytest/config/argparsing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from collections.abc import Sequence
88
import os
99
import sys
10+
import textwrap
1011
from typing import Any
1112
from typing import final
1213
from typing import Literal
@@ -533,8 +534,6 @@ def _split_lines(self, text, width):
533534
534535
This allows to have explicit line breaks in the help text.
535536
"""
536-
import textwrap
537-
538537
lines = []
539538
for line in text.splitlines():
540539
lines.extend(textwrap.wrap(line.strip(), width))

0 commit comments

Comments
 (0)