python-babel / babel

The official repository for Babel, the Python Internationalization Library
http://babel.pocoo.org/
BSD 3-Clause "New" or "Revised" License
1.29k stars 432 forks source link

Replace deprecated `ast.Str` with `ast.Constant` #1083

Closed tomasr8 closed 1 month ago

tomasr8 commented 1 month ago

Running the tests under python 3.12 I get deprecation warnings related to the usage of ast.Str which has been deprecated since 3.8 and will be removed in 3.14.

Since 3.8 is also the lowest version supported by babel, we can safely make the change to use ast.Constant everywhere.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.84%. Comparing base (e0d1018) to head (f2fb4cf). Report is 6 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1083 +/- ## ========================================== - Coverage 90.99% 89.84% -1.16% ========================================== Files 26 26 Lines 4444 4451 +7 ========================================== - Hits 4044 3999 -45 - Misses 400 452 +52 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.