]> git.donarmstrong.com Git - lilypond.git/commitdiff
(find_toplevel_snippets): Python < 2.3
authorJan Nieuwenhuizen <janneke@gnu.org>
Thu, 5 Feb 2004 23:37:20 +0000 (23:37 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Thu, 5 Feb 2004 23:37:20 +0000 (23:37 +0000)
compatibility.

ChangeLog
scripts/lilypond-book.py

index f17082fc0b3f08e4838c338165e180dda5f4fd19..d664f182d56ce42cabfefe3debe7570effc74ca2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-06  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+       * scripts/lilypond-book.py (find_toplevel_snippets): Python < 2.3
+       compatibility.
+
 2004-02-06  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
        * scripts/lilypond-book.py (simple_toplevel_snippets): new
index b80e4c41284b9e0020c05162433735ce6996f3fd..b8c1010e606115b90d550527403b4a252e725e7d 100644 (file)
@@ -553,7 +553,8 @@ def find_toplevel_snippets (s, types):
 
        snippets = []
        index = 0
-       found = {}.fromkeys (types)
+       #found = {}.fromkeys (types)
+       found = dict (map (lambda x: (x,None), types))
        while 1:
                first = 0
                endex = 1 << 30