Skip to content

Commit 68855ac

Browse files
authored
os.rename --> os.replace (#21628)
1 parent 29a5438 commit 68855ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/link.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def make_js_executable(script):
454454

455455

456456
def do_split_module(wasm_file, options):
457-
os.rename(wasm_file, wasm_file + '.orig')
457+
os.replace(wasm_file, wasm_file + '.orig')
458458
args = ['--instrument']
459459
if options.requested_debug:
460460
# Tell wasm-split to preserve function names.

0 commit comments

Comments
 (0)