diff options
author | Chris Liechti <cliechti@gmx.net> | 2017-08-29 00:42:14 +0200 |
---|---|---|
committer | Chris Liechti <cliechti@gmx.net> | 2018-05-07 19:36:22 +0200 |
commit | f0cde5f048aaba6cb9caf32b61e92284b3c3dd31 (patch) | |
tree | 60ab2b1ddd23cde3005fe9714c2c88cc76fa37e1 | |
parent | 3b7f062be6eee04e95e778fb86385708b6214556 (diff) | |
download | pyserial-git-f0cde5f048aaba6cb9caf32b61e92284b3c3dd31.tar.gz |
fix: remove default parameter now that os.path.basename is called
-rw-r--r-- | serial/tools/list_ports_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/tools/list_ports_common.py b/serial/tools/list_ports_common.py index aa91e5e..4199e30 100644 --- a/serial/tools/list_ports_common.py +++ b/serial/tools/list_ports_common.py @@ -32,7 +32,7 @@ def numsplit(text): class ListPortInfo(object): """Info collection base class for serial ports""" - def __init__(self, device=None): + def __init__(self, device): self.device = device self.name = os.path.basename(device) self.description = 'n/a' |