[PATCH STABLE] demandimport: fix TypeError when importing Python regex library (issue4920)

Gábor Stefanik gabor.stefanik at nng.com
Wed Oct 28 15:29:40 UTC 2015


# HG changeset patch
# User Gábor Stefanik <gabor.stefanik at nng.com>
# Date 1446046029 -3600
#      Wed Oct 28 16:27:09 2015 +0100
# Branch stable
# Node ID 982f4598422555ff712aa34f8a73d6326ae144aa
# Parent  a9ed5a8fc5e0554d5cb81b7206d2203cc49a2d23
demandimport: fix TypeError when importing Python regex library (issue4920)

diff --git a/mercurial/demandimport.py b/mercurial/demandimport.py
--- a/mercurial/demandimport.py
+++ b/mercurial/demandimport.py
@@ -233,6 +233,7 @@
     # raise ImportError if x not defined
     '__main__',
     '_ssl', # conditional imports in the stdlib, issue1964
+    '_sre', # issue4920
     'rfc822',
     'mimetools',
     # setuptools 8 expects this module to explode early when not on windows


More information about the Mercurial-devel mailing list