diff options
author | Jan Brauer <jan@jimdo.com> | 2012-07-12 22:19:49 +0200 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2012-09-23 16:45:51 -0700 |
commit | 7f526044e0e0d767791d739b10a33b548af8578e (patch) | |
tree | 09bf2c068bfe25ef4aec74f85c8c1def6adbfe34 /paramiko | |
parent | d18b8cf1e9aab43abc9f6750fd9fb15f356435e4 (diff) | |
download | paramiko-7f526044e0e0d767791d739b10a33b548af8578e.tar.gz |
re #33 - fix typo, be more pythonic
(cherry picked from commit 803820c3c8b1aaf2a11588431582916dbb23ea1e)
Diffstat (limited to 'paramiko')
-rw-r--r-- | paramiko/config.py | 4 |
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: |