mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
PyLint fix
This commit is contained in:
@ -51,7 +51,7 @@ class MultiThreadingStdStream(object):
|
|||||||
def write(self, value):
|
def write(self, value):
|
||||||
thread_id = thread_get_ident()
|
thread_id = thread_get_ident()
|
||||||
self._ensure_thread_buffer(thread_id)
|
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()
|
value = value.encode()
|
||||||
return self._buffers[thread_id].write(
|
return self._buffers[thread_id].write(
|
||||||
value.decode() if is_bytes(value) else value
|
value.decode() if is_bytes(value) else value
|
||||||
|
Reference in New Issue
Block a user