X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fmup2ly.py;h=59810972eef2830d40f36e1ee7fbc6f7dd5fd32b;hb=e89d6a9529b21ddbe177577d3c7e3003b4c6fb04;hp=cb62a5faab14b6921edc69c26070c216d8be30e9;hpb=d4e1cf3b24ad546d05a490ad1b07be45ea230e44;p=lilypond.git diff --git a/scripts/mup2ly.py b/scripts/mup2ly.py index cb62a5faab..59810972ee 100644 --- a/scripts/mup2ly.py +++ b/scripts/mup2ly.py @@ -86,28 +86,6 @@ option_definitions = [ # # source file of the GNU LilyPond music typesetter -# Handle bug in Python 1.6-2.1 -# -# there are recursion limits for some patterns in Python 1.6 til 2.1. -# fix this by importing pre instead. Fix by Mats. - -# todo: should check Python version first. -try: - import pre - re = pre - del pre -except ImportError: - import re - -# Attempt to fix problems with limited stack size set by Python! -# Sets unlimited stack size. Note that the resource module only -# is available on UNIX. -try: - import resource - resource.setrlimit (resource.RLIMIT_STACK, (-1, -1)) -except: - pass - try: import gettext gettext.bindtextdomain ('lilypond', localedir) @@ -127,7 +105,7 @@ def identify (): def warranty (): identify () sys.stdout.write ('\n') - sys.stdout.write (_ ('Copyright (c) %s by') % '2001--2004') + sys.stdout.write (_ ('Copyright (c) %s by') % '2001--2005') sys.stdout.write ('\n') sys.stdout.write (' Han-Wen Nienhuys') sys.stdout.write (' Jan Nieuwenhuizen') @@ -289,23 +267,6 @@ def cp_to_dir (pattern, dir): map (lambda x, d=dir: shutil.copy2 (x, os.path.join (d, x)), files) -# Python < 1.5.2 compatibility -# -# On most platforms, this is equivalent to -#`normpath(join(os.getcwd()), PATH)'. *Added in Python version 1.5.2* -if os.path.__dict__.has_key ('abspath'): - abspath = os.path.abspath -else: - def abspath (path): - return os.path.normpath (os.path.join (os.getcwd (), path)) - -if os.__dict__.has_key ('makedirs'): - makedirs = os.makedirs -else: - def makedirs (dir, mode=0777): - system ('mkdir -p %s' % dir) - - def mkdir_p (dir, mode=0777): if not os.path.isdir (dir): makedirs (dir, mode)