added import tests

This commit is contained in:
David Halter
2012-04-21 23:08:13 +02:00
parent dccef451a2
commit 1af8273389
6 changed files with 31 additions and 11 deletions

View File

@@ -570,6 +570,7 @@ class Statement(Simple):
brackets = {'(': Array.EMPTY, '[': Array.LIST, '{': Array.SET}
is_call = lambda: result.__class__ == Call
is_call_or_close = lambda: is_call() or close_brackets
if isinstance(tok, Name) or token_type in [tokenize.STRING,
tokenize.NUMBER]: # names
c_type = Call.NAME