mark a couple of functions as since 1.5.2
This commit is contained in:
Robey Pointer 2006-04-23 18:10:46 -07:00
parent 5c2c949b1e
commit 8e81ba61f5
1 changed files with 4 additions and 0 deletions

View File

@ -216,6 +216,8 @@ def parse_ssh_config(file_obj):
@type file_obj: file
@return: opaque configuration object
@rtype: object
@since: 1.5.2
"""
ret = []
config = { 'host': '*' }
@ -271,6 +273,8 @@ def lookup_ssh_host_config(hostname, config):
@type hostname: str
@param config: the config object to search
@type config: object
@since: 1.5.2
"""
matches = [x for x in config if fnmatch.fnmatch(hostname, x['host'])]
# sort in order of shortest match (usually '*') to longest