Martin Geisler
750183bdad
updated license to be explicit about GPL version 2
2009-04-26 01:08:54 +02:00
Steve Borho
1495d07855
demandimport: blacklist pythoncom
...
win32com.shell would segfault at import time if pythoncom
was demand loaded.
2009-03-09 21:00:37 -05:00
Dirkjan Ochtman
309bdac20d
demandimport: patch __builtin__ instead of __builtins__
...
This helps on implementations other than CPython, where __builtins__ isn't
necessarily defined (as it's an implementation detail for CPython).
2009-02-05 17:40:25 +01:00
Ali Gholami Rudi
bdaf736fbc
demandimport: handling new relative imports
...
Mercurial does not work on python2.6 because __import__ takes an
additional argument called level. This patch merely calls the
built-in __import__ when level is passed.
2008-01-16 19:14:54 +03:30
Matt Mackall
f200ad645a
demandload: give better diagnostic for call of an unloaded module
2007-12-10 10:24:47 -06:00
Patrick Mezard
38b7c18bab
demandimport: ignore resource module, not available under Windows.
2007-08-14 16:03:15 +02:00
Patrick Mezard
e7663b6ff8
demandimport: ignore pwd and grp.
...
Both are unavailable under Windows and tarfile detects them via ImportError.
2007-08-13 19:42:52 +02:00
Thomas Arendsen Hein
4d29c6dc8e
Updated copyright notices and add "and others" to "hg version"
2007-06-19 08:51:34 +02:00
Matt Mackall
ab72eb680f
demandimport: fix issue579 and add a test
...
fix suggested by Brendan
2007-06-18 19:43:26 -05:00
Lee Cantey
416c20c0e1
Fix for demandimport.py and Windows compiled version.
...
From Shun-ichi Goto in BTS issue 457 http://www.selenic.com/mercurial/bts/msg2780
2007-06-18 15:03:55 -07:00
Brendan Cully
464fa9a95b
Add _xmlplus to the demandimport blacklist. (HGCIA was failing to load.)
2007-03-03 18:59:54 -08:00
Matt Mackall
4aa5ee68ce
Add some modules to the demandimport ignore list for Windows
2006-12-17 22:16:57 -06:00
Brendan Cully
eab04761d3
demandimport: blacklist _hashlib again (imported in ImportError try block)
2006-12-17 18:45:46 -08:00
Brendan Cully
99bac46845
demandimport: handle already-loaded nested modules in subload
2006-12-17 18:34:42 -08:00
Matt Mackall
aa18646078
demandimport: fix import x.y.z as a when x.y is already imported.
2006-12-17 14:56:12 -06:00
Brendan Cully
6f4a09d3f4
Make demandimport pass all tests on python2.5.
2006-12-15 20:16:20 -08:00
Brendan Cully
8934db36d1
Merge with main
2006-12-15 11:14:55 -08:00
Matt Mackall
ec6238db65
demandimport: ignore _hashlib and email.mime
...
This makes things work with Python2.5. A better fix would be to fix
demandload to use __getattribute__ to be more transparent.
2006-12-15 12:38:18 -06:00
Benoit Boissinot
4bf7b440fe
use parent.__setattr__ instead of __dict__
2006-12-14 23:51:41 +01:00
Matt Mackall
f17a4e1934
Replace demandload with new demandimport
2006-12-13 13:27:09 -06:00