Add method back for bwic reasons.
Was removed in because it's
not used anymore. This is an internal API, but still safer for
backwards compatibility reasons to add the method back. Can be removed
for good in RF 5.0.
@@ -42,6 +42,7 @@ class JsonDumper(object):
def __init__(self, output):
self.write = output.write
+ self._output = output
self._dumpers = (MappingDumper(self),
IntegerDumper(self),
TupleListDumper(self),
@@ -56,6 +57,12 @@ class JsonDumper(object):
return
raise ValueError('Dumping %s not supported.' % type(data))
+ # TODO: Remove in RF 5.0. Not needed anymore after performance tuning in RF 4.1.2.
+ # Although this is internal API, don't still want to remove it in a patch release.
+ # Also `self._output` can be removed once this is gone.
+ def write(self, data):
+ self._output.write(data)
+
class _Dumper(object):
_handled_types = None
