# HG changeset patch # User Patrick Mezard # Date 1187100195 -7200 # Node ID 0bbd86b847dd8d60674e99cfc71c4387e544ad87 # Parent f4f2baf7dc8a761bab222bb900936cf00518e2ee demandimport: ignore resource module, not available under Windows. diff --git a/mercurial/demandimport.py b/mercurial/demandimport.py --- a/mercurial/demandimport.py +++ b/mercurial/demandimport.py @@ -108,7 +108,18 @@ def _demandimport(name, globals=None, lo 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"