From 137581759e3930d840eda17fa8d50912a47de053 Mon Sep 17 00:00:00 2001 From: Tom Offermann Date: Mon, 4 Mar 2013 21:41:28 -0800 Subject: [PATCH] Fix urlopen call in _fetch() for QuantumRandom. --- randomSources/quantumRandom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/randomSources/quantumRandom.py b/randomSources/quantumRandom.py index f435768..37833dd 100644 --- a/randomSources/quantumRandom.py +++ b/randomSources/quantumRandom.py @@ -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']