diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2016-12-13 12:02:23 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2016-12-13 12:34:15 -0800 |
commit | bd97b0f099a83cdfef9460a68d676a76999305ef (patch) | |
tree | 39a59cbb71391db8121167fc746597aa92741e08 /alot | |
parent | ed05579acda72f2d333961beca98e243df4e2b9a (diff) |
Use tuple for isinstance instead of multiple calls to isinstance
Diffstat (limited to 'alot')
-rw-r--r-- | alot/completion.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/completion.py b/alot/completion.py index 67c6eeda..f253b9ff 100644 --- a/alot/completion.py +++ b/alot/completion.py @@ -258,8 +258,8 @@ class ArgparseOptionCompleter(Completer): for optionstring in act.option_strings: if optionstring.startswith(pref): # append '=' for options that await a string value - if isinstance(act, argparse._StoreAction) or\ - isinstance(act, BooleanAction): + if isinstance( + act, (argparse._StoreAction, BooleanAction)): optionstring += '=' res.append(optionstring) |