Skip to content

Commit

Permalink
Merge pull request #3056 from digitaldavenyc/native_json
Browse files Browse the repository at this point in the history
Import native Python JSON only
  • Loading branch information
sigmavirus24 committed Mar 16, 2016
2 parents e668a09 + 09ecb71 commit 0acbf2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions requests/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@
#: Python 3.x?
is_py3 = (_ver[0] == 3)

try:
import simplejson as json
except (ImportError, SyntaxError):
# simplejson does not support Python 3.2, it throws a SyntaxError
# because of u'...' Unicode literals.
import json

# ---------
# Specifics
Expand Down
2 changes: 1 addition & 1 deletion requests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from .compat import (
cookielib, urlunparse, urlsplit, urlencode, str, bytes, StringIO,
is_py2, chardet, builtin_str, basestring)
from .compat import json as complexjson
import json as complexjson
from .status_codes import codes

#: The set of HTTP status codes that indicate an automatically
Expand Down

0 comments on commit 0acbf2b

Please sign in to comment.