changeset 10511:6f61c480f51c stable

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
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 19 Feb 2010 02:51:35 +0100
parents f77f3383c666
children 261cc6b0f15c 47838dee7d60
files mercurial/url.py
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/url.py	Fri Feb 19 02:23:38 2010 +0100
+++ b/mercurial/url.py	Fri Feb 19 02:51:35 2010 +0100
@@ -510,10 +510,11 @@
             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