1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pythonlib/riotctrl_ctrl: reformat native.py with black

This commit is contained in:
Alexandre Abadie 2021-09-29 13:14:36 +02:00
parent ba1173409f
commit 43550cd853
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -17,9 +17,10 @@ class NativeRIOTCtrl(riotctrl.ctrl.RIOTCtrl):
process, whenever a terminal is started. This allows for `reset()` to also
work for a the `native` instance.
"""
def _set_debug_adapter_id(self, child):
if child.name().endswith('.elf'):
self.env['DEBUG_ADAPTER_ID'] = str(child.pid)
if child.name().endswith(".elf"):
self.env["DEBUG_ADAPTER_ID"] = str(child.pid)
return True
return False