comparison mercurial/demandimport.py @ 28176:9ff7261cc0f5

demandimport: blacklist sqlalchemy.events as it has side effects (issue5085) Importing sqlalchemy.events cannot be delayed as it registers classes to their event mechanism. It worked fine before 4f1144c3c72b, since they use new-style imports. But now we have to blacklist it because our demandimport can handle new-style imports. This patch series isn't intended for stable as we don't guarantee API compatibility with 3rd-party extensions. They can temporarily disable the demand importer to work around the issue.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 06 Feb 2016 19:16:12 +0900
parents c25e3fd38ff1
children c7f89ad87bae
comparison
equal deleted inserted replaced
28175:c25e3fd38ff1 28176:9ff7261cc0f5
253 '__main__', 253 '__main__',
254 '_ssl', # conditional imports in the stdlib, issue1964 254 '_ssl', # conditional imports in the stdlib, issue1964
255 '_sre', # issue4920 255 '_sre', # issue4920
256 'rfc822', 256 'rfc822',
257 'mimetools', 257 'mimetools',
258 'sqlalchemy.events', # has import-time side effects (issue5085)
258 # setuptools 8 expects this module to explode early when not on windows 259 # setuptools 8 expects this module to explode early when not on windows
259 'distutils.msvc9compiler' 260 'distutils.msvc9compiler'
260 ] 261 ]
261 262
262 def isenabled(): 263 def isenabled():