fix the typo of rstrip

This commit is contained in:
Kayla Man 2023-09-27 21:47:02 +08:00
parent 9ffc657ee6
commit 6deb9338cb

View file

@ -3452,7 +3452,7 @@ def get_head_filename_without_hashes(original_path, name):
"%.*d",
"{{:0>{}}}".format(padding),
fhead
).rstip(".")
).rstrip(".")
new_fhead = "{}.{}".format(fhead, name)
filename = filename.replace(fhead, new_fhead)
return filename