fix the named param issue in the autocompletion

This commit is contained in:
Dave Halter committed 2014-04-19 22:57:41 +02:00
1 parent 34488d1bb6
commit 2b091076c1
4 files changed
+16 -5

No files matched your search

+2 -1
View File
@@ -163,7 +163,8 @@ class Script(object):
# Allow access on _definition here, because it's a
# public API and we don't want to make the internal
# Name object public.
completions.append((p._definition.get_name(), p))
if p._definition.stars == 0: # no *args/**kwargs
completions.append((p._definition.get_name(), p))
if not path and not isinstance(user_stmt, pr.Import):
# add keywords