summaryrefslogtreecommitdiff
path: root/modules/google_search.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/google_search.py')
-rw-r--r--modules/google_search.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/google_search.py b/modules/google_search.py
index 8af2c62..1bd0f26 100644
--- a/modules/google_search.py
+++ b/modules/google_search.py
@@ -4,7 +4,7 @@ info = {
'description': 'Google Search',
}
-import urllib, urllib2, simplejson
+import urllib, urllib2, json
class Module:
def __init__(self, bot):
@@ -19,7 +19,7 @@ class Module:
print 'error', e, str(e)
raise
- data = simplejson.loads(u.read())
+ data = json.loads(u.read())
response = data['responseData']
if not data['responseStatus'] == 200 or not len(response['results']):
return