summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
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]