[issue47152] Reorganize the re module sources
STINNER Victor
report at bugs.python.org
Sat Apr 2 08:01:28 EDT 2022
STINNER Victor <vstinner at 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 <report at bugs.python.org>
<https://bugs.python.org/issue47152>
_______________________________________
More information about the Python-bugs-list
mailing list