1
0
forked from VimPlug/jedi

fix problems with literals, finally

This commit is contained in:
David Halter
2013-09-06 00:40:08 +04:30
parent c3ba7d2ae8
commit 33711ba966
6 changed files with 12 additions and 9 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.String(module, str(name_str), (0, 0), (0, 0), inst)
name = pr.String(module, "'%s'" % name_str, (0, 0), (0, 0), inst)
with common.ignored(KeyError):
result = inst.execute_subscope_by_name('__getattr__', [name])
if not result: