changeset 1036:cfcd3032355c

compat: remove unused argument
author Kevin Bullock <kbullock@ringworld.org>
date Sat, 05 Aug 2017 17:07:59 -0500
parents fa08148bc5fc
children da62ef0569bb
files hggit/compat.py hggit/git_handler.py
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/compat.py
+++ b/hggit/compat.py
@@ -28,7 +28,7 @@
                 s = s.replace(c, '')
         return s
 
-def passwordmgr(ui, passwddb):
+def passwordmgr(ui):
     try:
         return url.passwordmgr(ui,
                                hgutil.urlreq.httppasswordmgrwithdefaultrealm())
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -1695,8 +1695,7 @@
             uri = uri[4:]
 
         if uri.startswith('http://') or uri.startswith('https://'):
-            realm = hgutil.urlreq.httppasswordmgrwithdefaultrealm()
-            pmgr = compat.passwordmgr(self.ui, realm)
+            pmgr = compat.passwordmgr(self.ui)
             auth = urllib2.HTTPBasicAuthHandler(pmgr)
 
             opener = urllib2.build_opener(auth)