Skip to content

Commit 64e72b7

Browse files
pprint: Remove unused arguments on PrettyPrinter
1 parent c4375f1 commit 64e72b7

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/_pytest/_io/pprint.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import collections as _collections
1616
import dataclasses as _dataclasses
1717
import re
18-
import sys as _sys
1918
import types as _types
2019
from io import StringIO as _StringIO
2120
from typing import Any
@@ -61,9 +60,7 @@ def __init__(
6160
indent=4,
6261
width=80,
6362
depth=None,
64-
stream=None,
6563
*,
66-
compact=False,
6764
sort_dicts=True,
6865
underscore_numbers=False,
6966
):
@@ -79,13 +76,6 @@ def __init__(
7976
depth
8077
The maximum depth to print out nested structures.
8178
82-
stream
83-
The desired output stream. If omitted (or false), the standard
84-
output stream available at construction will be used.
85-
86-
compact
87-
If true, several items will be combined in one line.
88-
8979
sort_dicts
9080
If true, dict keys are sorted.
9181
@@ -101,11 +91,6 @@ def __init__(
10191
self._depth = depth
10292
self._indent_per_level = indent
10393
self._width = width
104-
if stream is not None:
105-
self._stream = stream
106-
else:
107-
self._stream = _sys.stdout
108-
self._compact = bool(compact)
10994
self._sort_dicts = sort_dicts
11095
self._underscore_numbers = underscore_numbers
11196

0 commit comments

Comments
 (0)