Skip to content

Commit 9e13891

Browse files
committed
remove references to Python versions before 3.9
1 parent e502059 commit 9e13891

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cwltool/command_line_tool.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,7 @@ def calc_checksum(location: str) -> Optional[str]:
860860
return None
861861

862862
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
863+
return s.removeprefix(prefix)
865864

866865
for location, fobj in cachebuilder.pathmapper.items():
867866
if fobj.type == "File":

0 commit comments

Comments
 (0)