The function was already deprecated in Python 3.11 since it calls locale.getdefaultlocale() which was deprecated in Python 3.11. (cherry picked from commit bf58cd01b3) Co-authored-by: Victor Stinner <vstinner@python.org>
bf58cd01b3