Mercurial > public > mercurial-scm > hg
comparison mercurial/httprepo.py @ 3877:abaee83ce0a6
Replace demandload with new demandimport
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 13 Dec 2006 13:27:09 -0600 |
parents | e674cae8efee |
children | 6b4127c7d52a |
comparison
equal
deleted
inserted
replaced
3876:1e0b94cfba0e | 3877:abaee83ce0a6 |
---|---|
7 # of the GNU General Public License, incorporated herein by reference. | 7 # of the GNU General Public License, incorporated herein by reference. |
8 | 8 |
9 from node import * | 9 from node import * |
10 from remoterepo import * | 10 from remoterepo import * |
11 from i18n import gettext as _ | 11 from i18n import gettext as _ |
12 from demandload import * | 12 import hg, os, urllib, urllib2, urlparse, zlib, util, httplib |
13 demandload(globals(), "hg os urllib urllib2 urlparse zlib util httplib") | 13 import errno, keepalive, tempfile, socket, changegroup |
14 demandload(globals(), "errno keepalive tempfile socket changegroup") | |
15 | 14 |
16 class passwordmgr(urllib2.HTTPPasswordMgrWithDefaultRealm): | 15 class passwordmgr(urllib2.HTTPPasswordMgrWithDefaultRealm): |
17 def __init__(self, ui): | 16 def __init__(self, ui): |
18 urllib2.HTTPPasswordMgrWithDefaultRealm.__init__(self) | 17 urllib2.HTTPPasswordMgrWithDefaultRealm.__init__(self) |
19 self.ui = ui | 18 self.ui = ui |