()
| 50 | |
| 51 | |
| 52 | def 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 |