From: Fred Drake Date: Tue, 11 Aug 1998 18:17:47 +0000 (+0000) Subject: Use Perl's rename() function instead of system(); there's no need for two X-Git-Tag: v1.5.2a1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af06a0b4ee9877192f7d5d2033c03bfe384123cc;p=python Use Perl's rename() function instead of system(); there's no need for two additional processes for each name change! --- diff --git a/Doc/tools/node2label.pl b/Doc/tools/node2label.pl index 5cc54d69bf..a59d68ed59 100755 --- a/Doc/tools/node2label.pl +++ b/Doc/tools/node2label.pl @@ -51,6 +51,5 @@ while (<>) { } foreach $oldname (keys %newnames) { -# or ln -s - system("mv $oldname $newnames{$oldname}"); + rename($oldname, $newnames{$oldname}); }