You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
# HG changeset patch
|
|
# User Mads Kiilerich <mads@kiilerich.com>
|
|
# Date 1728323604 -7200
|
|
# Mon Oct 07 19:53:24 2024 +0200
|
|
# Branch stable
|
|
# Node ID fa708fa22276b2f9fb2043eea64e5a4d6d53a994
|
|
# Parent 7ff35f1290c0f922c6f6d77b1113679346d59f9d
|
|
hgdemandimport: add collections.abc to the ignore list because Python 3.13 rc3
|
|
|
|
Everything worked fine with Python 3.13 rc2, but something changed for rc3 ...
|
|
and seems to have been released that way in the final 3.13 .
|
|
|
|
Now, when i18n.py imports typing and it touches collections.abc.Hashable , we
|
|
get:
|
|
|
|
ValueError: module object for collections.abc substituted in sys.modules during a lazy load
|
|
|
|
I have not analyzed the problem in details.
|
|
|
|
We *could* work around the problem by disabling demand import of typing. But
|
|
that would effectively disable demand import of collections.abc too. Instead,
|
|
just disable demand import for collections.abc .
|
|
|
|
diff --git a/hgdemandimport/__init__.py b/hgdemandimport/__init__.py
|
|
--- a/hgdemandimport/__init__.py
|
|
+++ b/hgdemandimport/__init__.py
|
|
@@ -62,6 +62,7 @@ IGNORES = {
|
|
'_weakrefset',
|
|
'warnings',
|
|
'threading',
|
|
+ 'collections.abc',
|
|
}
|
|
|
|
_pypy = '__pypy__' in sys.builtin_module_names
|