bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Errors with midi2ly and musicxml2ly


From: Aaron Hill
Subject: Re: Errors with midi2ly and musicxml2ly
Date: Wed, 20 Nov 2019 08:31:53 -0800
User-agent: Roundcube Webmail/1.3.8

On 2019-11-20 12:00 am, Артем Тартаковский wrote:
ср, 20 нояб. 2019 г., 2:00 Aaron Hill <address@hidden>:
It's a compatibility issue between Python 2 and 3.  The backtick
operator was removed [1] in Python 3, in favor of the repr() procedure.

[1]: https://portingguide.readthedocs.io/en/latest/syntax.html#backticks

It is my understanding the scripts shipping with LilyPond are not
expected to be interpretable by Python 3 yet.

So what do I have to replace this construction with?

Near as I can tell, it's a simple replacement of `foo` with repr(foo). So, you could potentially run the scripts through the following sed command:

  sed -i~ 's/`\([^`]*\)`/repr(\1)/g' *.py


-- Aaron Hill



reply via email to

[Prev in Thread] Current Thread [Next in Thread]