Skip to content

Commit 3b37f20

Browse files
committed
Updated isbn.py to not require importing the json library.
Removed the json library from requirements.txt as it is not required.
1 parent b29733b commit 3b37f20

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

plugins/isbn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import re
2-
import json, requests
2+
import requests
33

44
from cloudbot import hook
55
import cloudbot
@@ -17,7 +17,7 @@ def getISBN(book):
1717
url = url + book
1818
#print(url)
1919
resp = requests.get(url=url)
20-
data = json.loads(resp.text)
20+
data = resp.json()
2121
return data
2222
except:
2323
return("fail")

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ pyenchant
1515
pythonwhois
1616
imgurpython
1717
isodate
18-
json

0 commit comments

Comments
 (0)