1
0
forked from VimPlug/jedi

is_py3k() -> is_py3k

This commit is contained in:
David Halter
2012-09-06 02:38:57 +02:00
parent 0008e2c703
commit 18686c1d63
5 changed files with 13 additions and 14 deletions

View File

@@ -1168,7 +1168,7 @@ def get_iterator_types(inputs):
result += gen.get_index_types()
elif isinstance(gen, Instance):
# __iter__ returned an instance.
name = '__next__' if is_py3k() else 'next'
name = '__next__' if is_py3k else 'next'
try:
result += gen.execute_subscope_by_name(name)
except KeyError: