Closed tirkarthi closed 1 year ago
@tirkarthi thank you for the report. I agree. Would you please submit a PR for review?
I haven't verified but it feels like this will require changes to translationstring as well.
A quick search indicates that translationstring uses only gettext
.
It looks like these were actually removed in Python 3.11. Fedora Linux has a downstream bug about this.
Debian downstream bug
Bug Report
Describe the bug
Several gettext related functions that are from Python 2 were deprecated in Python 3.8 and were set for removal in Python 3.10 . But these were not removed in Python 3.10 but it will be good to fix them. Straightforward replacement is not possible since the pyramid APIs return bytes and the replacements return string.
To Reproduce
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain the issue.
Additional context
https://github.com/python/cpython/pull/10139