def _proxy_parameters(self):
proxy_protocol = '<STR_LIT>'<EOL>if self.proxy_host.startswith('<STR_LIT>'):<EOL><INDENT>proxy_protocol = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>proxy_protocol = '<STR_LIT:http>'<EOL><DEDENT>proxy = '<STR_LIT>'.format(proxy_protocol)<EOL>if self.proxy_username and self.proxy_password:<EOL><INDENT>proxy += '<STR_LIT>'.format(self.proxy_username, self.proxy_password)<EOL><DEDENT>proxy += sub(r'<STR_LIT>', '<STR_LIT>', self.proxy_host)<EOL>if self.proxy_port:<EOL><INDENT>proxy += '<STR_LIT>'.format(self.proxy_port)<EOL><DEDENT>return {<EOL>'<STR_LIT:http>': proxy,<EOL>'<STR_LIT>': proxy<EOL>}<EOL>
Builds Proxy parameters Dict from
client options.