summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-27 23:03:35 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-27 23:03:35 -0400
commit554561b70f899ad8ec38393b27eed646456cab62 (patch)
tree197a5f86b09b0e176ff57831088c9e5cdb9a62f8 /cmd2.py
parent88ce0b509dc09233a7c3efca7f1bea8b2c6c1ae2 (diff)
downloadcmd2-git-554561b70f899ad8ec38393b27eed646456cab62.tar.gz
Addressed code review comments
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index 0975fb20..712a073b 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -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]