summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/config.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/paramiko/config.py b/paramiko/config.py
index 1c9816d3..458d5dd0 100644
--- a/paramiko/config.py
+++ b/paramiko/config.py
@@ -105,11 +105,9 @@ class SSHConfig (object):
"""
matches = [x for x in self._config if fnmatch.fnmatch(hostname, x['host'])]
# Move * to the end
- _star = matches[0]
- del matches[0]
+ _star = matches.pop(0)
matches.append(_star)
ret = {}
- ret = {}
for m in matches:
for k,v in m.iteritems():
if not k in ret: