1
0
forked from VimPlug/jedi

Call should always have an end_pos

This commit is contained in:
David Halter
2013-08-16 22:15:02 +04:30
parent 3d698ffad6
commit d4ff98aee2
2 changed files with 12 additions and 10 deletions

View File

@@ -477,7 +477,7 @@ def check_getattr(inst, name_str):
result = []
# str is important to lose the NamePart!
module = builtin.Builtin.scope
name = pr.Call(module, str(name_str), pr.Call.STRING, (0, 0), inst)
name = pr.Call(module, str(name_str), pr.Call.STRING, (0, 0), (0, 0), inst)
with common.ignored(KeyError):
result = inst.execute_subscope_by_name('__getattr__', [name])
if not result: