Skip to content

Commit dc73d91

Browse files
committed
Merge pull request #2579 from drcapulet/alexc-fix-http-handler
Use urllib2 as it correctly handles working with proxies
1 parent 469a1be commit dc73d91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sentry/utils/integrationdocs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import os
66
import json
7-
import urllib
7+
import urllib2
88
import logging
99

1010
import sentry
@@ -51,7 +51,7 @@ def get_integration_id(platform_id, integration_id):
5151

5252
def sync_docs():
5353
print 'syncing documentation (platform index)'
54-
data = json.load(urllib.urlopen(BASE_URL.format('_index.json')))
54+
data = json.load(urllib2.urlopen(BASE_URL.format('_index.json')))
5555
platform_list = []
5656
for platform_id, integrations in data['platforms'].iteritems():
5757
platform_list.append({
@@ -84,7 +84,7 @@ def sync_integration_docs(platform_id, integration_id, path):
8484
print ' syncing documentation for %s.%s integration' % (
8585
platform_id, integration_id)
8686

87-
data = json.load(urllib.urlopen(BASE_URL.format(path)))
87+
data = json.load(urllib2.urlopen(BASE_URL.format(path)))
8888

8989
key = get_integration_id(platform_id, integration_id)
9090

0 commit comments

Comments
 (0)