From 4051083d03ad8cfcecbd12dd4f77daeed871692a Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Sat, 31 Aug 2002 13:24:49 +0000 Subject: [PATCH] use old re's for python 2.2 as well --- ChangeLog | 2 ++ scripts/lilypond-book.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d92445e498..0a3f3c9ba0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2002-08-31 Han-Wen Nienhuys + * scripts/lilypond-book.py: use old re's for python 2.2 as well + * debian/control: Debian patches by Anthony Fok * input/regression/lyric-combine-polyphonic.ly: new file. diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 2030b14c47..cd3bf0de69 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -44,12 +44,12 @@ import getopt import sys import __main__ -# Handle bug in Python 1.6-2.1 +# Handle bug in Python 1.6-2.2 # -# there are recursion limits for some patterns in Python 1.6 til 2.1. +# there are recursion limits for some patterns in Python 1.6 til 2.2. # fix this by importing the 1.5.2 implementation pre instead. Fix by Mats. -if float (sys.version[0:3]) < 2.2: +if float (sys.version[0:3]) <= 2.2: try: import pre re = pre -- 2.39.5