commit | 48504f713205bdcdc297d6ee6acef31242fa7736 | [log] [tgz] |
---|---|---|
author | Brendan Simon <brendan.simon@etrix.com.au> | Sun Aug 20 16:15:55 2017 +1000 |
committer | Brendan Simon <brendan.simon@etrix.com.au> | Sun Aug 20 16:15:55 2017 +1000 |
tree | 858c373042b9d9885094d1b16816dfddecc93839 | |
parent | 797018b53ddee79856e107f067c5873f53f73ee4 [diff] |
list_ports: set default `name` attribute See #262 Set the default `ListPortInfo.name` attribute from the full `device` name, using `os.path.basename(device)` This should be valid for all platforms, but can be easily overridden in platform specific code that populates the `ListPortInfo` object.