@@ -108,7 +108,7 @@ def baz():
108
108
script = make_script (script_dir , "perftest" , code )
109
109
with subprocess .Popen (
110
110
[sys .executable , "-Xperf" , script ],
111
- universal_newlines = True ,
111
+ text = True ,
112
112
stderr = subprocess .PIPE ,
113
113
stdout = subprocess .PIPE ,
114
114
) as process :
@@ -157,7 +157,7 @@ def baz():
157
157
script = make_script (script_dir , "perftest" , code )
158
158
with subprocess .Popen (
159
159
[sys .executable , script ],
160
- universal_newlines = True ,
160
+ text = True ,
161
161
stderr = subprocess .PIPE ,
162
162
stdout = subprocess .PIPE ,
163
163
) as process :
@@ -211,7 +211,7 @@ def is_unwinding_reliable():
211
211
def perf_command_works ():
212
212
try :
213
213
cmd = ["perf" , "--help" ]
214
- stdout = subprocess .check_output (cmd , universal_newlines = True )
214
+ stdout = subprocess .check_output (cmd , text = True )
215
215
except (subprocess .SubprocessError , OSError ):
216
216
return False
217
217
@@ -237,7 +237,7 @@ def perf_command_works():
237
237
'print("hello")' ,
238
238
)
239
239
stdout = subprocess .check_output (
240
- cmd , cwd = script_dir , universal_newlines = True , stderr = subprocess .STDOUT
240
+ cmd , cwd = script_dir , text = True , stderr = subprocess .STDOUT
241
241
)
242
242
except (subprocess .SubprocessError , OSError ):
243
243
return False
0 commit comments