summaryrefslogtreecommitdiffstats
path: root/Doc/tools/node2label.pl
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 /Doc/tools/node2label.pl
parentb866020f667e3e0f01c408229e3a48391c337290 (diff)
downloadcpython-9caa11014108f4a9f527983df3e48a2661b4e787.zip
cpython-9caa11014108f4a9f527983df3e48a2661b4e787.tar.gz
cpython-9caa11014108f4a9f527983df3e48a2661b4e787.tar.bz2
assure a consistent assignment for nodes with multiple labels
Diffstat (limited to 'Doc/tools/node2label.pl')
-rwxr-xr-xDoc/tools/node2label.pl3
1 files changed, 2 insertions, 1 deletions
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;
}