Closed lokal-profil closed 7 years ago
While py2.7 is happy to stick r.content into json.loads() py3 requires it to be explicitly decoded. r.json() sidesteps this by giving the responsability to requests
r.content
json.loads()
r.json()
requests
While py2.7 is happy to stick
r.content
intojson.loads()
py3 requires it to be explicitly decoded.r.json()
sidesteps this by giving the responsability torequests