django-ftl / fluent-compiler

High performance Python implementation of Fluent, Mozilla's l10n language
Other
21 stars 4 forks source link

Target Python 3.12 AST and fix warnings #23

Closed spookylukey closed 9 months ago

spookylukey commented 9 months ago

Python 3.8 and later use ast.Constant and not the subclasses ast.Str, Num etc. and the latter are now deprecated.

spookylukey commented 9 months ago

@Samylov-Mikhail I think this approach to fixing the AST warnings should work OK, without dropping Python 3.6/3.7 compat - what do you think?

samylovma commented 9 months ago

Yeah, It's a good approach!