restore the unrelated code

This commit is contained in:
Kayla Man 2023-07-05 23:01:48 +08:00
parent fed1d096e8
commit 32eb96c2c6

View file

@ -157,8 +157,6 @@ def deliver_single_file(
delivery_path = delivery_path.replace("..", ".")
# Make sure path is valid for all platforms
delivery_path = os.path.normpath(delivery_path.replace("\\", "/"))
# Remove newlines from the end of the string to avoid OSError during copy
delivery_path = delivery_path.rstrip()
delivery_folder = os.path.dirname(delivery_path)
if not os.path.exists(delivery_folder):
@ -307,4 +305,4 @@ def deliver_sequence(
_copy_file(src, dst)
uploaded += 1
return report_items, uploaded
return report_items, uploaded