Append to no_proxy instead of overwrite

Overwriting no_proxy may cause some trouble for other plugins using network in environments with proxy exceptions, e.g. vim-fugitive
This commit is contained in:
Matthias Bilger 2014-09-11 07:22:27 +02:00
parent f01b2121da
commit d3adb3faf1

View File

@ -53,7 +53,7 @@ except ImportError:
# Relevant issues:
# https://github.com/Valloric/YouCompleteMe/issues/641
# https://github.com/kennethreitz/requests/issues/879
os.environ['no_proxy'] = '127.0.0.1,localhost'
os.environ['no_proxy'] = os.environ['no_proxy'] + (',' if len (os.environ['no_proxy']) > 0 else '') + '127.0.0.1,localhost'
# Force the Python interpreter embedded in Vim (in which we are running) to
# ignore the SIGINT signal. This helps reduce the fallout of a user pressing