Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/__init__.py @ 3877:abaee83ce0a6
Replace demandload with new demandimport
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 13 Dec 2006 13:27:09 -0600 |
parents | d351a3be3371 |
children | 46293a0c7e9f |
line wrap: on
line diff
--- a/mercurial/hgweb/__init__.py Tue Dec 12 18:16:23 2006 -0600 +++ b/mercurial/hgweb/__init__.py Wed Dec 13 13:27:09 2006 -0600 @@ -6,6 +6,11 @@ # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. -from mercurial.demandload import demandload -demandload(globals(), "mercurial.hgweb.hgweb_mod:hgweb") -demandload(globals(), "mercurial.hgweb.hgwebdir_mod:hgwebdir") +import hgweb_mod, hgwebdir_mod + +def hgweb(*args, **kwargs): + return hgweb_mod.hgweb(*args, **kwargs) + +def hgwebdir(*args, **kwargs): + return hgwebdir_mod.hgwebdir(*args, **kwargs) +