demandimport: ignore pwd and grp.
authorPatrick Mezard <pmezard@gmail.com>
Mon, 13 Aug 2007 19:42:52 +0200
changeset 5097 f4f2baf7dc8a
parent 5096 ad6b97132b81
child 5098 0bbd86b847dd
demandimport: ignore pwd and grp. Both are unavailable under Windows and tarfile detects them via ImportError.
mercurial/demandimport.py
--- a/mercurial/demandimport.py	Sun Aug 12 12:15:10 2007 -0300
+++ b/mercurial/demandimport.py	Mon Aug 13 19:42:52 2007 +0200
@@ -108,7 +108,7 @@
                 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"