We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e502059 commit 9e13891Copy full SHA for 9e13891
cwltool/command_line_tool.py
@@ -860,8 +860,7 @@ def calc_checksum(location: str) -> Optional[str]:
860
return None
861
862
def remove_prefix(s: str, prefix: str) -> str:
863
- # replace with str.removeprefix when Python 3.9+
864
- return s[len(prefix) :] if s.startswith(prefix) else s
+ return s.removeprefix(prefix)
865
866
for location, fobj in cachebuilder.pathmapper.items():
867
if fobj.type == "File":
0 commit comments