lilypond-devel
[Top][All Lists]
Advanced

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

Re: lilyglyphs: Python 2 deprecation


From: Martin Tarenskeen
Subject: Re: lilyglyphs: Python 2 deprecation
Date: Tue, 12 Nov 2019 08:47:10 +0100 (CET)



On Tue, 12 Nov 2019, Werner LEMBERG wrote:

 If you are the maintainer of any of these packages, and still are using
 Python2, please try to update to Python3 as soon as possible.

   ...
   lilyglyphs/
     py2 only
     lilyglyphs/lily-glyph-commands.py
     lilyglyphs/lily-image-commands.py
     lilyglyphs/lily-rebuild-pdfs.py
     lilyglyphs/lilyglyphs_common.py
   ...

I ran the 2to3 command on the python scripts from https://github.com/uliska/lilyglyphs/tree/master/scripts

Without having tested it the output ouput shows me 3 types of issues that need fixing. The most frequent one is the print command that needs to be replaced with print ().

1. print vs print()
2. raw_input() vs input()
3. something with iterkeys() vs keys() in sorted()

I have attached the output of "2to3 *.py" where you see what I mean.
Maybe someone who knows how to use git can take a look?

--

MT

Attachment: 2to3.txt
Description: Text document


reply via email to

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