Skip to content

Commit 6f9c2f8

Browse files
committed
s/WHITELIST/ACCEPTLIST/g
1 parent e70eeb8 commit 6f9c2f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/draft2tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from .pathmapper import PathMapper
2727
from .job import CommandLineJob
2828

29-
WHITELIST_RE = re.compile(r"^[a-zA-Z0-9._-]+$")
29+
ACCEPTLIST_RE = re.compile(r"^[a-zA-Z0-9._-]+$")
3030

3131
from .flatten import flatten
3232

@@ -244,7 +244,7 @@ def _check_adjust(f): # type: (Dict[str,Any]) -> Dict[str,Any]
244244
f["dirname"], f["basename"] = os.path.split(f["path"])
245245
if f["class"] == "File":
246246
f["nameroot"], f["nameext"] = os.path.splitext(f["basename"])
247-
if not WHITELIST_RE.match(f["basename"]):
247+
if not ACCEPTLIST_RE.match(f["basename"]):
248248
raise WorkflowException("Invalid filename: '%s' contains illegal characters" % (f["basename"]))
249249
return f
250250

0 commit comments

Comments
 (0)