Skip to content

Commit fc84287

Browse files
committed
replace another rstrip use
1 parent cd11c24 commit fc84287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/tools/filetools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ def extract_cmd(filepath, overwrite=False):
13201320
"""
13211321
filename = os.path.basename(filepath)
13221322
ext = find_extension(filename)
1323-
target = filename.rstrip(ext)
1323+
target = filename[:-len(ext)]
13241324

13251325
cmd_tmpl = EXTRACT_CMDS[ext.lower()]
13261326
if overwrite:

0 commit comments

Comments
 (0)