diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-03-27 23:03:35 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-03-27 23:03:35 -0400 |
commit | 554561b70f899ad8ec38393b27eed646456cab62 (patch) | |
tree | 197a5f86b09b0e176ff57831088c9e5cdb9a62f8 /cmd2.py | |
parent | 88ce0b509dc09233a7c3efca7f1bea8b2c6c1ae2 (diff) | |
download | cmd2-git-554561b70f899ad8ec38393b27eed646456cab62.tar.gz |
Addressed code review comments
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -44,7 +44,11 @@ import tempfile import traceback import unittest from code import InteractiveConsole -from enum import Enum + +try: + from enum34 import Enum +except ImportError: + from enum import Enum import pyparsing import pyperclip @@ -2137,7 +2141,7 @@ class Cmd(cmd.Cmd): if self.allow_appended_space and endidx == len(line): str_to_append += ' ' - self.completion_matches[0] = self.completion_matches[0] + str_to_append + self.completion_matches[0] += str_to_append try: return self.completion_matches[state] |