Skip to content

Commit 342194b

Browse files
committed
revert erroneous changes in cwltool/sandbox.py
1 parent 8a54e7c commit 342194b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/sandboxjs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def execjs(js, jslib, timeout=None, debug=False): # type: (Union[Mapping, Text]
121121

122122
nodejs = localdata.proc
123123

124-
fn = u"\"use strict\";\n%s\n(function()%s)()" % \
124+
fn = u"\"use strict\";\n%s\n(function()%s)()" %\
125125
(jslib, js if isinstance(js, basestring) and len(js) > 1 and js[0] == '{' else ("{return (%s);}" % js))
126126

127127
killed = []
@@ -188,7 +188,7 @@ def stdfmt(data): # type: (unicode) -> unicode
188188
nodejs.poll()
189189

190190
if debug:
191-
info = u"returncode was: %s\nscript was:\n%s\nstdout was: %s\nstderr was: %s\n" % \
191+
info = u"returncode was: %s\nscript was:\n%s\nstdout was: %s\nstderr was: %s\n" %\
192192
(nodejs.returncode, fn_linenum(), stdfmt(stdoutdata), stdfmt(stderrdata))
193193
else:
194194
info = stdfmt(stderrdata)

0 commit comments

Comments
 (0)