def just_find_proxy(pacfile, url, host=None):
if not os.path.isfile(pacfile):<EOL><INDENT>raise IOError('<STR_LIT>'.format(pacfile))<EOL><DEDENT>init()<EOL>parse_pac(pacfile)<EOL>proxy = find_proxy(url,host)<EOL>cleanup()<EOL>return proxy<EOL>
This function is a wrapper around init, parse_pac, find_proxy
and cleanup. This is the function to call if you want to find
proxy just for one url.