1
0
forked from VimPlug/jedi

string additions also work now - be prepared #24!

This commit is contained in:
Dave Halter
2014-03-09 12:36:17 +01:00
parent 70e1970f40
commit b22c9c96f2
2 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -200,6 +200,6 @@ def _element_calculate(left, operator, right):
if isinstance(left, iterable.Array) or is_string(left):
return [left]
elif operator == '+':
if is_number(left) and is_number(right):
if is_number(left) and is_number(right) or is_string(left) and is_string(right):
return [create(left.obj + right.obj)]
return [left, right]