1
1
-- -
2
2
source : crates / ruff_linter / src / rules / pyupgrade / mod .rs
3
3
-- -
4
- UP022 .py :4 :10 : UP022 [* ] Sending ` stdout` and ` stderr` to ` PIPE` is deprecated , use ` capture_output `
4
+ UP022 .py :4 :10 : UP022 [* ] Prefer ` capture_output ` over sending ` stdout` and ` stderr` to ` PIPE`
5
5
|
6
6
2 | import subprocess
7
7
3 |
@@ -22,7 +22,7 @@ UP022.py:4:10: UP022 [*] Sending `stdout` and `stderr` to `PIPE` is deprecated,
22
22
6 6 | output = subprocess .run ([" foo" ], stdout = subprocess .PIPE , stderr = subprocess .PIPE )
23
23
7 7 |
24
24
25
- UP022 .py :6 :10 : UP022 [* ] Sending ` stdout` and ` stderr` to ` PIPE` is deprecated , use ` capture_output `
25
+ UP022 .py :6 :10 : UP022 [* ] Prefer ` capture_output ` over sending ` stdout` and ` stderr` to ` PIPE`
26
26
|
27
27
4 | output = run ([" foo" ], stdout = subprocess .PIPE , stderr = subprocess .PIPE )
28
28
5 |
@@ -43,7 +43,7 @@ UP022.py:6:10: UP022 [*] Sending `stdout` and `stderr` to `PIPE` is deprecated,
43
43
8 8 | output = subprocess .run (stdout = subprocess .PIPE , args = [" foo" ], stderr = subprocess .PIPE )
44
44
9 9 |
45
45
46
- UP022 .py :8 :10 : UP022 [* ] Sending ` stdout` and ` stderr` to ` PIPE` is deprecated , use ` capture_output `
46
+ UP022 .py :8 :10 : UP022 [* ] Prefer ` capture_output ` over sending ` stdout` and ` stderr` to ` PIPE`
47
47
|
48
48
6 | output = subprocess .run ([" foo" ], stdout = subprocess .PIPE , stderr = subprocess .PIPE )
49
49
7 |
@@ -64,7 +64,7 @@ UP022.py:8:10: UP022 [*] Sending `stdout` and `stderr` to `PIPE` is deprecated,
64
64
10 10 | output = subprocess .run (
65
65
11 11 | [" foo" ], stdout = subprocess .PIPE , check = True , stderr = subprocess .PIPE
66
66
67
- UP022 .py :10 :10 : UP022 [* ] Sending ` stdout` and ` stderr` to ` PIPE` is deprecated , use ` capture_output `
67
+ UP022 .py :10 :10 : UP022 [* ] Prefer ` capture_output ` over sending ` stdout` and ` stderr` to ` PIPE`
68
68
|
69
69
8 | output = subprocess .run (stdout = subprocess .PIPE , args = [" foo" ], stderr = subprocess .PIPE )
70
70
9 |
@@ -88,7 +88,7 @@ UP022.py:10:10: UP022 [*] Sending `stdout` and `stderr` to `PIPE` is deprecated,
88
88
13 13 |
89
89
14 14 | output = subprocess .run (
90
90
91
- UP022 .py :14 :10 : UP022 [* ] Sending ` stdout` and ` stderr` to ` PIPE` is deprecated , use ` capture_output `
91
+ UP022 .py :14 :10 : UP022 [* ] Prefer ` capture_output ` over sending ` stdout` and ` stderr` to ` PIPE`
92
92
|
93
93
12 | )
94
94
13 |
@@ -112,7 +112,7 @@ UP022.py:14:10: UP022 [*] Sending `stdout` and `stderr` to `PIPE` is deprecated,
112
112
17 17 |
113
113
18 18 | output = subprocess .run (
114
114
115
- UP022 .py :18 :10 : UP022 [* ] Sending ` stdout` and ` stderr` to ` PIPE` is deprecated , use ` capture_output `
115
+ UP022 .py :18 :10 : UP022 [* ] Prefer ` capture_output ` over sending ` stdout` and ` stderr` to ` PIPE`
116
116
|
117
117
16 | )
118
118
17 |
@@ -144,7 +144,7 @@ UP022.py:18:10: UP022 [*] Sending `stdout` and `stderr` to `PIPE` is deprecated,
144
144
24 23 | encoding = " utf-8" ,
145
145
25 24 | close_fds = True ,
146
146
147
- UP022 .py :29 :14 : UP022 [* ] Sending ` stdout` and ` stderr` to ` PIPE` is deprecated , use ` capture_output `
147
+ UP022 .py :29 :14 : UP022 [* ] Prefer ` capture_output ` over sending ` stdout` and ` stderr` to ` PIPE`
148
148
|
149
149
28 | if output :
150
150
29 | output = subprocess .run (
@@ -174,7 +174,7 @@ UP022.py:29:14: UP022 [*] Sending `stdout` and `stderr` to `PIPE` is deprecated,
174
174
35 34 | encoding = " utf-8" ,
175
175
36 35 | )
176
176
177
- UP022 .py :38 :10 : UP022 Sending ` stdout` and ` stderr` to ` PIPE` is deprecated , use ` capture_output `
177
+ UP022 .py :38 :10 : UP022 Prefer ` capture_output ` over sending ` stdout` and ` stderr` to ` PIPE`
178
178
|
179
179
36 | )
180
180
37 |
@@ -188,7 +188,7 @@ UP022.py:38:10: UP022 Sending `stdout` and `stderr` to `PIPE` is deprecated, use
188
188
|
189
189
= help : Replace with ` capture_output` keyword argument
190
190
191
- UP022 .py :42 :10 : UP022 Sending ` stdout` and ` stderr` to ` PIPE` is deprecated , use ` capture_output `
191
+ UP022 .py :42 :10 : UP022 Prefer ` capture_output ` over sending ` stdout` and ` stderr` to ` PIPE`
192
192
|
193
193
40 | )
194
194
41 |
@@ -202,7 +202,7 @@ UP022.py:42:10: UP022 Sending `stdout` and `stderr` to `PIPE` is deprecated, use
202
202
|
203
203
= help : Replace with ` capture_output` keyword argument
204
204
205
- UP022 .py :46 :10 : UP022 Sending ` stdout` and ` stderr` to ` PIPE` is deprecated , use ` capture_output `
205
+ UP022 .py :46 :10 : UP022 Prefer ` capture_output ` over sending ` stdout` and ` stderr` to ` PIPE`
206
206
|
207
207
44 | )
208
208
45 |
0 commit comments