diff options
author | Robey Pointer <robey@master-shake.local> | 2006-01-14 22:33:38 -0800 |
---|---|---|
committer | Robey Pointer <robey@master-shake.local> | 2006-01-14 22:33:38 -0800 |
commit | be7d99886c2f6223d8f0899e4864c11f922dfde8 (patch) | |
tree | 69cd2fe137db736eeb5efe85641c939ecd196f35 | |
parent | cb3008b402a6a411204d0dc060c2f85a548c1c7e (diff) |
[project @ robey@master-shake.local-20060115063338-50ebabff6276f500]
patch from jan hudec to fix a python 2.4-ism
-rw-r--r-- | paramiko/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/util.py b/paramiko/util.py index 77eee3f6..809b850d 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(key=lambda x: len(x['host'])) + matches.sort(lambda x,y: cmp(len(x['host']), len(x['host']))) ret = {} for m in matches: ret.update(m) |