fix: incorrect var name

This commit is contained in:
William Luke 2022-03-01 16:37:25 +03:00
parent 556366a933
commit 41dbd5a400

View File

@ -62,8 +62,8 @@ class KeyedWriter(OutputWriter):
def write(self, k, v): def write(self, k, v):
logg.debug(f"writing keywriter key: {k} value: {v}") logg.debug(f"writing keywriter key: {k} value: {v}")
if isinstance(value, str): if isinstance(v, str):
value = value.encode("utf-8") v = v.encode("utf-8")
if self.writer_keyed is not None: if self.writer_keyed is not None:
self.writer_keyed.write(k, v) self.writer_keyed.write(k, v)
if self.writer_immutable is not None: if self.writer_immutable is not None: