From 9f8c27c956f3dc9fd00f9045faf6cbbf2462ea54 Mon Sep 17 00:00:00 2001 From: David Halter Date: Mon, 10 Dec 2012 13:49:28 +0100 Subject: [PATCH] ignore an exception with incomplete 'as' statements --- jedi/parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/parsing.py b/jedi/parsing.py index d760053e..1b61f86b 100644 --- a/jedi/parsing.py +++ b/jedi/parsing.py @@ -768,7 +768,7 @@ class Statement(Simple): is_chain = False continue elif tok == 'as': - next(tok_iter) + next(tok_iter, None) continue brackets = {'(': Array.TUPLE, '[': Array.LIST, '{': Array.SET}