1
0
forked from VimPlug/jedi

Fix remaining issues with CompiledName.name change.

This commit is contained in:
Dave Halter
2014-09-03 19:47:37 +02:00
parent bb5ffe9343
commit f7a1c110ba
2 changed files with 5 additions and 5 deletions

View File

@@ -347,7 +347,7 @@ def _element_calculate(evaluator, left, operator, right):
def check(obj):
"""Checks if a Jedi object is either a float or an int."""
return isinstance(obj, er.Instance) and obj.name in ('int', 'float')
return isinstance(obj, er.Instance) and obj.name.get_code() in ('int', 'float')
# Static analysis, one is a number, the other one is not.
if operator in ('+', '-') and l_is_num != r_is_num \