summaryrefslogtreecommitdiff
path: root/paramiko
diff options
context:
space:
mode:
authorJan Brauer <jan@jimdo.com>2012-07-12 22:19:49 +0200
committerJeff Forcier <jeff@bitprophet.org>2012-09-23 16:45:51 -0700
commit7f526044e0e0d767791d739b10a33b548af8578e (patch)
tree09bf2c068bfe25ef4aec74f85c8c1def6adbfe34 /paramiko
parentd18b8cf1e9aab43abc9f6750fd9fb15f356435e4 (diff)
downloadparamiko-7f526044e0e0d767791d739b10a33b548af8578e.tar.gz
re #33 - fix typo, be more pythonic
(cherry picked from commit 803820c3c8b1aaf2a11588431582916dbb23ea1e)
Diffstat (limited to 'paramiko')
-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: