diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-05-08 15:06:06 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-05-08 15:06:06 -0400 |
commit | 68b03bf4c5e280e3023cf38cfc102ed30cf7c8ca (patch) | |
tree | 39ded6e9f921b1276e789a95ce3b55e6194de8b0 /cmd2/cmd2.py | |
parent | 89b5c20e1cb524502dae1069e3beb1422aedbc45 (diff) | |
download | cmd2-git-68b03bf4c5e280e3023cf38cfc102ed30cf7c8ca.tar.gz |
Fixed flake errors
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 9282c811..993162d1 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1521,8 +1521,8 @@ class Cmd(cmd.Cmd): # For delimited matches, we check for a space in what appears before the display # matches (common_prefix) as well as in the display matches themselves. - if (' ' in common_prefix) or (display_prefix and - any(' ' in match for match in self.display_matches)): + if ' ' in common_prefix or (display_prefix + and any(' ' in match for match in self.display_matches)): add_quote = True # If there is a tab completion and any match has a space, then add an opening quote |