A followup to #47. If an installation has simplejson installed, requests will prefer that module over the built-in json. Unfortunately, this will also change the exception caught in #47 to simplejson.errors.JSONDecodeError. This PR imports json in the same manner as requests so the namespaces line up properly.
A followup to #47. If an installation has
simplejson
installed,requests
will prefer that module over the built-injson
. Unfortunately, this will also change the exception caught in #47 tosimplejson.errors.JSONDecodeError
. This PR importsjson
in the same manner asrequests
so the namespaces line up properly.Went ahead and bumped the version, too.