From 4921bf8b6a175597a27f0b73e82beccbdef4fc15 Mon Sep 17 00:00:00 2001 From: Valerii Koval Date: Fri, 22 May 2020 14:22:41 +0300 Subject: [PATCH] PyLint fix --- platformio/commands/home/rpc/handlers/piocore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/commands/home/rpc/handlers/piocore.py b/platformio/commands/home/rpc/handlers/piocore.py index 940b1dd2..00adf5b6 100644 --- a/platformio/commands/home/rpc/handlers/piocore.py +++ b/platformio/commands/home/rpc/handlers/piocore.py @@ -51,7 +51,7 @@ class MultiThreadingStdStream(object): def write(self, value): thread_id = thread_get_ident() self._ensure_thread_buffer(thread_id) - if PY2 and isinstance(value, unicode): + if PY2 and isinstance(value, unicode): # pylint: disable=undefined-variable value = value.encode() return self._buffers[thread_id].write( value.decode() if is_bytes(value) else value