@@ -145,7 +145,7 @@ def check_js_threshold_version(self, working_alias: str) -> bool:
145145 """
146146 # parse nodejs version into int Tuple: 'v4.2.6\n' -> [4, 2, 6]
147147 current_version_str = subprocess .check_output ( # nosec
148- [working_alias , "-v" ], universal_newlines = True
148+ [working_alias , "-v" ], text = True
149149 )
150150 current_version = [
151151 int (v ) for v in current_version_str .strip ().strip ("v" ).split ("." )
@@ -294,7 +294,7 @@ def new_js_proc(
294294 if (
295295 subprocess .check_output ( # nosec
296296 [n , "--eval" , "process.stdout.write('t')" ],
297- universal_newlines = True ,
297+ text = True ,
298298 )
299299 != "t"
300300 ):
@@ -326,7 +326,7 @@ def new_js_proc(
326326 if container_engine in ("docker" , "podman" ):
327327 dockerimgs = subprocess .check_output ( # nosec
328328 [container_engine , "images" , "-q" , nodeimg ],
329- universal_newlines = True ,
329+ text = True ,
330330 )
331331 elif container_engine == "singularity" :
332332 singularity_cache = os .environ .get ("CWL_SINGULARITY_CACHE" )
@@ -345,7 +345,7 @@ def new_js_proc(
345345 re .escape (nodeimg ),
346346 subprocess .check_output ( # nosec
347347 [container_engine , "images" ],
348- universal_newlines = True ,
348+ text = True ,
349349 ),
350350 )
351351 if matches :
@@ -369,7 +369,7 @@ def new_js_proc(
369369 nodejs_pull_commands .append (nodeimg )
370370 cwd = singularity_cache if singularity_cache else os .getcwd ()
371371 nodejsimg = subprocess .check_output ( # nosec
372- nodejs_pull_commands , universal_newlines = True , cwd = cwd
372+ nodejs_pull_commands , text = True , cwd = cwd
373373 )
374374 _logger .debug (
375375 "Pulled Docker image %s %s using %s" ,
0 commit comments