def merge_environment_settings(self, url, proxies, stream, verify, cert):
<EOL>if self.trust_env:<EOL><INDENT>env_proxies = get_environ_proxies(url) or {}<EOL>for (k, v) in env_proxies.items():<EOL><INDENT>proxies.setdefault(k, v)<EOL><DEDENT>if verify is True or verify is None:<EOL><INDENT>verify = (os.environ.get('<STR_LIT>') or<EOL>os.environ.get('<STR_LIT>'))<EOL><DEDENT><DEDENT>proxies = merge_setting(proxies, self.proxies)<EOL>stream = merge_setting(stream, self.stream)<EOL>verify = merge_setting(verify, self.verify)<EOL>cert = merge_setting(cert, self.cert)<EOL>return {'<STR_LIT>': verify, '<STR_LIT>': proxies, '<STR_LIT>': stream,<EOL>'<STR_LIT>': cert}<EOL>
Check the environment and merge it with some settings.