Refs #16850 -- Removed obsolete simplejson support in JSON serializer.

cpython's json version is 2.0.9 so this line is never used.
This commit is contained in:
Tim Graham 2017-05-20 22:09:08 -04:00 committed by GitHub
parent e9c7f118a7
commit 3e9aa29871
1 changed files with 0 additions and 3 deletions

View File

@ -21,9 +21,6 @@ class Serializer(PythonSerializer):
internal_use_only = False internal_use_only = False
def _init_options(self): 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._current = None
self.json_kwargs = self.options.copy() self.json_kwargs = self.options.copy()
self.json_kwargs.pop('stream', None) self.json_kwargs.pop('stream', None)