changeset 45415:81b4e7c866ec stable

hgdemandimport: bypass demandimport for _ast module (issue6407) This is broken on Python 3.9rc1, and while it sounds like there may be a fix in Python, we probably also should have this workaround in place in hg. See the bug for more details (including on bugs at redhat and b.p.o). Differential Revision: https://phab.mercurial-scm.org/D9004
author Augie Fackler <augie@google.com>
date Wed, 09 Sep 2020 14:48:55 -0400
parents aaeccdb6e654
children 4ebc5f325bed
files hgdemandimport/__init__.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgdemandimport/__init__.py	Fri Sep 04 15:21:02 2020 -0400
+++ b/hgdemandimport/__init__.py	Wed Sep 09 14:48:55 2020 -0400
@@ -46,6 +46,7 @@
     # setuptools' pkg_resources.py expects "from __main__ import x" to
     # raise ImportError if x not defined
     '__main__',
+    '_ast',  # https://bugs.python.org/issue41631
     '_ssl',  # conditional imports in the stdlib, issue1964
     '_sre',  # issue4920
     'rfc822',