comparison mercurial/demandimport.py @ 25934:e283c5d922db

demandimport: add __future__ to ignore list __future__ is special. We should definitely not be trying to lazy load it.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 08 Aug 2015 17:12:37 -0700
parents 1fc6c02782ab
children 49dd4fd3f283
comparison
equal deleted inserted replaced
25933:1fc6c02782ab 25934:e283c5d922db
143 if getattr(mod, x, nothing) is nothing: 143 if getattr(mod, x, nothing) is nothing:
144 setattr(mod, x, _demandmod(x, mod.__dict__, locals)) 144 setattr(mod, x, _demandmod(x, mod.__dict__, locals))
145 return mod 145 return mod
146 146
147 ignore = [ 147 ignore = [
148 '__future__',
148 '_hashlib', 149 '_hashlib',
149 '_xmlplus', 150 '_xmlplus',
150 'fcntl', 151 'fcntl',
151 'win32com.gen_py', 152 'win32com.gen_py',
152 '_winreg', # 2.7 mimetypes needs immediate ImportError 153 '_winreg', # 2.7 mimetypes needs immediate ImportError