From 7f526044e0e0d767791d739b10a33b548af8578e Mon Sep 17 00:00:00 2001 From: Jan Brauer Date: Thu, 12 Jul 2012 22:19:49 +0200 Subject: [PATCH] re #33 - fix typo, be more pythonic (cherry picked from commit 803820c3c8b1aaf2a11588431582916dbb23ea1e) --- paramiko/config.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paramiko/config.py b/paramiko/config.py index 1c9816d..458d5dd 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: