From 1731d51b5194d255fbcf73660c61ea3614878614 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Wed, 18 Jan 2006 23:21:56 -0800 Subject: [PATCH] [project @ robey@master-shake.local-20060119072156-31241967db33d1d9] john a meinel caught a typo in the previous sort() patch --- paramiko/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paramiko/util.py b/paramiko/util.py index 809b850..fad12ee 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)