STINNER Victor <vstin...@python.org> added the comment:
Is the "import _locale" still used in re/__init__.py? It cannot see any reference to it in the code and test_re still if it's removed. The last reference to the _locale module has been removed in 2017 by the commit 898ff03e1e7925ecde3da66327d3cdc7e07625ba. diff --git a/Lib/re/__init__.py b/Lib/re/__init__.py index c47a2650e3..b887722bbb 100644 --- a/Lib/re/__init__.py +++ b/Lib/re/__init__.py @@ -124,10 +124,6 @@ import enum from . import _compiler, _parser import functools -try: - import _locale -except ImportError: - _locale = None # public symbols ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue47152> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com