5 def append(self, value, start_index=None, end_index=None):
7 if isinstance(value, str)
and len(value) == 1:
11 self.
sink.write(
"\r\n")
13 elif isinstance(value, str):
15 if start_index
is not None and end_index
is not None:
16 value_to_append = value[start_index:end_index]
18 value_to_append = value
19 self.
sink.write(value_to_append.replace(
"\n",
"\r\n"))