mirror of
https://github.com/python/cpython.git
synced 2025-09-13 12:17:24 +00:00
Use Perl's rename() function instead of system(); there's no need for two
additional processes for each name change!
This commit is contained in:
parent
211f22c1b1
commit
af06a0b4ee
1 changed files with 1 additions and 2 deletions
|
@ -51,6 +51,5 @@ while (<>) {
|
|||
}
|
||||
|
||||
foreach $oldname (keys %newnames) {
|
||||
# or ln -s
|
||||
system("mv $oldname $newnames{$oldname}");
|
||||
rename($oldname, $newnames{$oldname});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue