src/eric7/MicroPython/Devices/__init__.py

branch
eric7
changeset 9765
6378da868bb0
parent 9756
9854647c8c5c
child 9882
56a0934d65c8
equal deleted inserted replaced
9764:57496966803c 9765:6378da868bb0
474 @param serialNumber serial number of the board (defaults to "") 474 @param serialNumber serial number of the board (defaults to "")
475 @type str (optional) 475 @type str (optional)
476 @return instantiated device interface 476 @return instantiated device interface
477 @rtype BaseDevice 477 @rtype BaseDevice
478 """ 478 """
479
480 with contextlib.suppress(KeyError): 479 with contextlib.suppress(KeyError):
481 mod = importlib.import_module( 480 mod = importlib.import_module(
482 SupportedBoards[deviceType]["module"], __package__ 481 SupportedBoards[deviceType]["module"], __package__
483 ) 482 )
484 if mod: 483 if mod:

eric ide

mercurial