From 09ecb718aeb1d3a8aa3fe12c097cf49ee8d3259b Mon Sep 17 00:00:00 2001 From: Dave Padovano Date: Wed, 16 Mar 2016 12:24:50 -0400 Subject: [PATCH] remove simplejson --- requests/compat.py | 6 ------ requests/models.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/requests/compat.py b/requests/compat.py index 70edff7849..d6353ed844 100644 --- a/requests/compat.py +++ b/requests/compat.py @@ -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 diff --git a/requests/models.py b/requests/models.py index d98b9620d5..ffd5f97100 100644 --- a/requests/models.py +++ b/requests/models.py @@ -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