@@ -145,7 +145,7 @@ def check_js_threshold_version(self, working_alias: str) -> bool:
145
145
"""
146
146
# parse nodejs version into int Tuple: 'v4.2.6\n' -> [4, 2, 6]
147
147
current_version_str = subprocess .check_output ( # nosec
148
- [working_alias , "-v" ], universal_newlines = True
148
+ [working_alias , "-v" ], text = True
149
149
)
150
150
current_version = [
151
151
int (v ) for v in current_version_str .strip ().strip ("v" ).split ("." )
@@ -294,7 +294,7 @@ def new_js_proc(
294
294
if (
295
295
subprocess .check_output ( # nosec
296
296
[n , "--eval" , "process.stdout.write('t')" ],
297
- universal_newlines = True ,
297
+ text = True ,
298
298
)
299
299
!= "t"
300
300
):
@@ -326,7 +326,7 @@ def new_js_proc(
326
326
if container_engine in ("docker" , "podman" ):
327
327
dockerimgs = subprocess .check_output ( # nosec
328
328
[container_engine , "images" , "-q" , nodeimg ],
329
- universal_newlines = True ,
329
+ text = True ,
330
330
)
331
331
elif container_engine == "singularity" :
332
332
singularity_cache = os .environ .get ("CWL_SINGULARITY_CACHE" )
@@ -345,7 +345,7 @@ def new_js_proc(
345
345
re .escape (nodeimg ),
346
346
subprocess .check_output ( # nosec
347
347
[container_engine , "images" ],
348
- universal_newlines = True ,
348
+ text = True ,
349
349
),
350
350
)
351
351
if matches :
@@ -369,7 +369,7 @@ def new_js_proc(
369
369
nodejs_pull_commands .append (nodeimg )
370
370
cwd = singularity_cache if singularity_cache else os .getcwd ()
371
371
nodejsimg = subprocess .check_output ( # nosec
372
- nodejs_pull_commands , universal_newlines = True , cwd = cwd
372
+ nodejs_pull_commands , text = True , cwd = cwd
373
373
)
374
374
_logger .debug (
375
375
"Pulled Docker image %s %s using %s" ,
0 commit comments