mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +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) {
|
foreach $oldname (keys %newnames) {
|
||||||
# or ln -s
|
rename($oldname, $newnames{$oldname});
|
||||||
system("mv $oldname $newnames{$oldname}");
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue