On 2019-11-20 12:00 am, Артем Тартаковский wrote:
ср, 20 нояб. 2019 г., 2:00 Aaron Hill <lilyp...@hillvisions.com>:
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

_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to