Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion randomSources/quantumRandom.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def object_hook(obj):
if obj.get('type') == 'string':
obj['data'] = [s.encode('ascii') for s in obj['data']]
return obj
data = json.loads(urllib2.urlopen(url).read(), object_hook=object_hook)
data = json.loads(urlopen(url).read(), object_hook=object_hook)
assert data['success'] is True, data
assert data['length'] == arrayLength, data
return data['data']
Expand Down