summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobey Pointer <robey@master-shake.local>2006-01-18 23:21:56 -0800
committerRobey Pointer <robey@master-shake.local>2006-01-18 23:21:56 -0800
commit1731d51b5194d255fbcf73660c61ea3614878614 (patch)
treea0a6198bb62e9f12643df072d7695a0f55564242
parent6a145dea09e8781711adcfe1c718ee5fd6c4f3fd (diff)
[project @ robey@master-shake.local-20060119072156-31241967db33d1d9]
john a meinel caught a typo in the previous sort() patch
-rw-r--r--paramiko/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/util.py b/paramiko/util.py
index 809b850d..fad12eeb 100644
--- a/paramiko/util.py
+++ b/paramiko/util.py
@@ -294,7 +294,7 @@ def lookup_ssh_host_config(hostname, config):
"""
matches = [x for x in config if fnmatch.fnmatch(hostname, x['host'])]
# sort in order of shortest match (usually '*') to longest
- matches.sort(lambda x,y: cmp(len(x['host']), len(x['host'])))
+ matches.sort(lambda x,y: cmp(len(x['host']), len(y['host'])))
ret = {}
for m in matches:
ret.update(m)