11/03/2016 17:38, Teodor Sigaev wrote:
>> Here is the patch, attached.
>
> Hmm, now script doesn't work with Python 2:
> % python2 -V
> Python 2.7.11
> % python2 contrib/unaccent/generate_unaccent_rules.py
> File "contrib/unaccent/generate_unaccent_rules.py", line 7
> SyntaxError: Non-ASCII character '\xe2' in file
> contrib/unaccent/generate_unaccent_rules.py on line 7, but no encoding
> declared; see http://python.org/dev/peps/pep-0263/ for details
>
> Is it intentional?
>
In fact, Python 3 is not backward-compatible. This version brings many
new features which are not compatible with Python 2, so it is
intentional. To quote the documentation: “Python 3.0 […] is the first
ever intentionally backwards incompatible Python release”.
Despite all that, I think this transition to Python 3 is wise, it is
available since 2008. Python 2 is legacy and its last version (2.7) is a
“end-of-life release”.
Léonard Benedetti