# HG changeset patch # User Benoit Boissinot # Date 2010-02-19 01:51:35 # Node ID 6f61c480f51c970d3e0cb0d6862e5e3c3784303c # Parent f77f3383c66673cccce5683c6f48938e89a96792 url: *args argument is a tuple, not a list (found by pylint) E1101:514:httpshandler._makeconnection: Instance of 'tuple' has no 'pop' member E1101:516:httpshandler._makeconnection: Instance of 'tuple' has no 'pop' member diff --git a/mercurial/url.py b/mercurial/url.py --- a/mercurial/url.py +++ b/mercurial/url.py @@ -510,10 +510,11 @@ if has_https: keyfile = None certfile = None - if args: # key_file - keyfile = args.pop(0) - if args: # cert_file - certfile = args.pop(0) + if len(args) >= 1: # key_file + keyfile = args[0] + if len(args) >= 2: # cert_file + certfile = args[1] + args = args[2:] # if the user has specified different key/cert files in # hgrc, we prefer these