demandimport: ignore resource module, not available under Windows.
authorPatrick Mezard <pmezard@gmail.com>
Tue, 14 Aug 2007 16:03:15 +0200
changeset 5098 0bbd86b847dd
parent 5097 f4f2baf7dc8a
child 5099 105d4cf7ec24
demandimport: ignore resource module, not available under Windows.
mercurial/demandimport.py
--- a/mercurial/demandimport.py	Mon Aug 13 19:42:52 2007 +0200
+++ b/mercurial/demandimport.py	Tue Aug 14 16:03:15 2007 +0200
@@ -108,7 +108,18 @@
                 setattr(mod, x, _demandmod(x, mod.__dict__, locals))
         return mod
 
-ignore = ['_hashlib', '_xmlplus', 'fcntl', 'win32com.gen_py', 'pwd', 'grp']
+ignore = [
+    '_hashlib',
+    '_xmlplus',
+    'fcntl',
+    'win32com.gen_py',
+    # imported by tarfile, not available under Windows
+    'pwd',
+    'grp',
+    # imported by profile, itself imported by hotshot.stats,
+    # not available under Windows
+    'resource',
+    ]
 
 def enable():
     "enable global demand-loading of modules"