This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients dom1310df, ezio.melotti, gvanrossum, malin, mrabarnett, serhiy.storchaka, vstinner
Date 2022-04-02.12:01:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648900888.09.0.462844050353.issue47152@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2022-04-02 12:01:28vstinnersetrecipients: + vstinner, gvanrossum, ezio.melotti, mrabarnett, serhiy.storchaka, malin, dom1310df
2022-04-02 12:01:28vstinnersetmessageid: <1648900888.09.0.462844050353.issue47152@roundup.psfhosted.org>
2022-04-02 12:01:28vstinnerlinkissue47152 messages
2022-04-02 12:01:28vstinnercreate