MCPcopy
hub / github.com/ycm-core/YouCompleteMe / PatchNoProxy

Function PatchNoProxy

python/ycm/youcompleteme.py:52–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51
52def PatchNoProxy():
53 current_value = os.environ.get( 'no_proxy', '' )
54 additions = '127.0.0.1,localhost'
55 os.environ[ 'no_proxy' ] = ( additions if not current_value
56 else current_value + ',' + additions )
57
58
59# We need this so that Requests doesn't end up using the local HTTP proxy when

Callers 1

youcompleteme.pyFile · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected