From: janneke Date: Thu, 5 Feb 2004 23:37:20 +0000 (+0000) Subject: (find_toplevel_snippets): Python < 2.3 X-Git-Tag: release/2.1.20~22 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8a2646f9ca7bebfe441933fc4f2a860ea0f12719;p=lilypond.git (find_toplevel_snippets): Python < 2.3 compatibility. --- diff --git a/ChangeLog b/ChangeLog index f17082fc0b..d664f182d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-02-06 Jan Nieuwenhuizen + + * scripts/lilypond-book.py (find_toplevel_snippets): Python < 2.3 + compatibility. + 2004-02-06 Han-Wen Nienhuys * scripts/lilypond-book.py (simple_toplevel_snippets): new diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index b80e4c4128..b8c1010e60 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -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