demandimport: ignore pwd and grp.
authorPatrick Mezard <pmezard@gmail.com>
Mon, 13 Aug 2007 19:42:52 +0200
changeset 5152 b51d07ed1b18
parent 5151 9374373fb727
child 5153 1d5ebb0d366f
demandimport: ignore pwd and grp. Both are unavailable under Windows and tarfile detects them via ImportError.
mercurial/demandimport.py
--- a/mercurial/demandimport.py
+++ b/mercurial/demandimport.py
@@ -108,7 +108,7 @@ def _demandimport(name, globals=None, lo
                 setattr(mod, x, _demandmod(x, mod.__dict__, locals))
         return mod
 
-ignore = ['_hashlib', '_xmlplus', 'fcntl', 'win32com.gen_py']
+ignore = ['_hashlib', '_xmlplus', 'fcntl', 'win32com.gen_py', 'pwd', 'grp']
 
 def enable():
     "enable global demand-loading of modules"