import completion fully working

This commit is contained in:
David Halter
2012-07-17 00:43:30 +02:00
parent 45413a18b9
commit 2feef20dc5
5 changed files with 29 additions and 18 deletions

View File

@@ -647,7 +647,7 @@ class Generator(object):
content of a generator.
"""
names = []
none_pos = (None,None)
none_pos = (0, 0)
executes_generator = ('__next__', 'send')
for n in ('close', 'throw') + executes_generator:
name = parsing.Name([n], none_pos, none_pos)