From 3e9aa298719f19d5f09dbe0df29b6bb8d2136229 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 20 May 2017 22:09:08 -0400 Subject: [PATCH] Refs #16850 -- Removed obsolete simplejson support in JSON serializer. cpython's json version is 2.0.9 so this line is never used. --- django/core/serializers/json.py | 3 --- 1 file changed, 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)