summaryrefslogtreecommitdiff
path: root/django/core/serializers/json.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-05-20 22:09:08 -0400
committerGitHub <noreply@github.com>2017-05-20 22:09:08 -0400
commit3e9aa298719f19d5f09dbe0df29b6bb8d2136229 (patch)
tree2e888b6fba461953293c84756650c9ad0b2280f3 /django/core/serializers/json.py
parente9c7f118a7ab19a5441f2dceeb1765138d44daf7 (diff)
downloaddjango-3e9aa298719f19d5f09dbe0df29b6bb8d2136229.tar.gz
Refs #16850 -- Removed obsolete simplejson support in JSON serializer.
cpython's json version is 2.0.9 so this line is never used.
Diffstat (limited to 'django/core/serializers/json.py')
-rw-r--r--django/core/serializers/json.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/django/core/serializers/json.py b/django/core/serializers/json.py
index af5c74d9fd..5d35440a6c 100644
--- a/django/core/serializers/json.py
+++ b/django/core/serializers/json.py
@@ -21,9 +21,6 @@ class Serializer(PythonSerializer):
internal_use_only = False
def _init_options(self):
- if json.__version__.split('.') >= ['2', '1', '3']:
- # Use JS strings to represent Python Decimal instances (ticket #16850)
- self.options.update({'use_decimal': False})
self._current = None
self.json_kwargs = self.options.copy()
self.json_kwargs.pop('stream', None)