Skip to content

Commit 53a1e6f

Browse files
author
Peter Amstutz
committed
Remove unused stepname argument from check_adjust
1 parent a3c4c31 commit 53a1e6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cwltool/draft2tool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ def run(self, **kwargs):
148148

149149
# map files to assigned path inside a container. We need to also explicitly
150150
# walk over input as implicit reassignment doesn't reach everything in builder.bindings
151-
def check_adjust(builder, stepname, f):
152-
# type: (Builder, Text, Dict[Text, Any]) -> Dict[Text, Any]
151+
def check_adjust(builder, f):
152+
# type: (Builder, Dict[Text, Any]) -> Dict[Text, Any]
153153

154154
f["path"] = builder.pathmapper.mapper(f["location"])[1]
155155
f["dirname"], f["basename"] = os.path.split(f["path"])
@@ -300,7 +300,7 @@ def rm_pending_output_callback(output_callbacks, jobcachepending,
300300
_logger.debug(u"[job %s] path mappings is %s", j.name,
301301
json.dumps({p: builder.pathmapper.mapper(p) for p in builder.pathmapper.files()}, indent=4))
302302

303-
_check_adjust = partial(check_adjust, builder, jobname)
303+
_check_adjust = partial(check_adjust, builder)
304304

305305
visit_class([builder.files, builder.bindings], ("File", "Directory"), _check_adjust)
306306

0 commit comments

Comments
 (0)