Skip to content
Snippets Groups Projects
Commit 141ed0bf72a1 authored by kiilerix's avatar kiilerix
Browse files

hgdemandimport: add collections.abc to the ignore list because Python 3.13 rc3

It worked in Python 3.13 rc2, but something changed for rc3.

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

This seems to be a general problem, released in the final Python 3.13 . 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 .
parent 7b8769cca23d
No related branches found
No related tags found
2 merge requests!1006merge stable into default.,!1002hgdemandimport: add collections.abc to the ignore list because Python 3.13 rc3
Pipeline #89613 passed
......@@ -62,6 +62,7 @@
'_weakrefset',
'warnings',
'threading',
'collections.abc',
}
_pypy = '__pypy__' in sys.builtin_module_names
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment