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:
parent
e9c7f118a7
commit
3e9aa29871
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue