summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>1998-02-18 16:10:22 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>1998-02-18 16:10:22 (GMT)
commit9caa11014108f4a9f527983df3e48a2661b4e787 (patch)
tree7f9446894bf9be57c6080ba1c3cfdb11301dd534
parentb866020f667e3e0f01c408229e3a48391c337290 (diff)
downloadcpython-9caa11014108f4a9f527983df3e48a2661b4e787.zip
cpython-9caa11014108f4a9f527983df3e48a2661b4e787.tar.gz
cpython-9caa11014108f4a9f527983df3e48a2661b4e787.tar.bz2
assure a consistent assignment for nodes with multiple labels
-rwxr-xr-xDoc/node2label.pl3
-rwxr-xr-xDoc/tools/node2label.pl3
2 files changed, 4 insertions, 2 deletions
diff --git a/Doc/node2label.pl b/Doc/node2label.pl
index 8159900..1d643db 100755
--- a/Doc/node2label.pl
+++ b/Doc/node2label.pl
@@ -4,7 +4,8 @@
require "labels.pl";
%nodes = ();
-foreach $label (keys %external_labels) {
+# sort so that we get a consistent assignment for nodes with multiple labels
+foreach $label (sort keys %external_labels) {
$nodes{$external_labels{$label}} = $label;
}
diff --git a/Doc/tools/node2label.pl b/Doc/tools/node2label.pl
index 8159900..1d643db 100755
--- a/Doc/tools/node2label.pl
+++ b/Doc/tools/node2label.pl
@@ -4,7 +4,8 @@
require "labels.pl";
%nodes = ();
-foreach $label (keys %external_labels) {
+# sort so that we get a consistent assignment for nodes with multiple labels
+foreach $label (sort keys %external_labels) {
$nodes{$external_labels{$label}} = $label;
}