mercurial/httprepo.py
changeset 4029 9210fba03d16
parent 4025 d8b3edf88af0
parent 4016 a195f11ed1a2
child 4134 9dc64c8414ca
equal deleted inserted replaced
4028:540d1059c802 4029:9210fba03d16
     6 # This software may be used and distributed according to the terms
     6 # This software may be used and distributed according to the terms
     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 _
    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