]> git.ipfire.org Git - thirdparty/babel.git/commit
Replace usage of parser.suite with ast.parse
authorMiro Hrončok <miro@hroncok.cz>
Sun, 5 Jan 2020 23:37:39 +0000 (00:37 +0100)
committerAarni Koskela <akx@iki.fi>
Mon, 6 Jan 2020 12:58:33 +0000 (14:58 +0200)
commit4fa749b918810b52a63b312d82e4003e24db0406
tree7ab0814cf23d6bf26f27af3d93f4512dc5637e37
parentd45b2d300b1e2ef261c243ab7d094045d61fcd8e
Replace usage of parser.suite with ast.parse

Replaced usage of the long-superseded "parser.suite" module in the
mako.util package for parsing the python magic encoding comment with the
"ast.parse" function introduced many years ago in Python 2.5, as
"parser.suite" is emitting deprecation warnings in Python 3.9.

Fixes https://github.com/sqlalchemy/mako/issues/310
See also https://github.com/sqlalchemy/mako/commit/2dae7d2c3da73653e6de329dc15c55056a0b9ab6
babel/util.py