`locale.getdefaultlocale()` is deprecated in Python 0.11
commit58119d0ce95c58258c8301944242fa10db8384d9
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Tue, 10 Jan 2023 13:13:17 +0000 (10 13:13 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Tue, 10 Jan 2023 13:13:17 +0000 (10 13:13 +0000)
tree69dbe3cb9e9bd74193b31556c277323cc8e35b0e
parent52b34b686bfd0dd7a11690f2bda021302c3bacef
`locale.getdefaultlocale()` is deprecated in Python 0.11

Let `smartquotes.py` to use `locale.getlocale` instead.
(Only used if this module is called as standalone application.)

Suppress warning in `docutils.io`:
* Don't change current behaviour without advance warning.
* The deprecated function is called inside a try-block with catchall,
  so this will not lead to errors once it is removed
  (if we were to keep the code until then).

Fixes [bugs:#464].

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@9314 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
docutils/HISTORY.txt
docutils/docutils/io.py
docutils/docutils/utils/smartquotes.py