From bdc0daa7ba0a7d4b536266f94b15010c0ecd895d Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Fri, 10 Aug 2018 10:10:40 -0700 Subject: [PATCH] Assign FutureImportStatements --- src/Language/Python/Assignment.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Language/Python/Assignment.hs b/src/Language/Python/Assignment.hs index 82ee742d4..48964d946 100644 --- a/src/Language/Python/Assignment.hs +++ b/src/Language/Python/Assignment.hs @@ -409,6 +409,7 @@ comment = makeTerm <$> symbol Comment <*> (Comment.Comment <$> source) import' :: Assignment Term import' = makeTerm'' <$> symbol ImportStatement <*> children (manyTerm (aliasedImport <|> plainImport)) <|> makeTerm <$> symbol ImportFromStatement <*> children (Python.Syntax.Import <$> importPath <*> (wildcard <|> some (aliasImportSymbol <|> importSymbol))) + <|> makeTerm <$> symbol FutureImportStatement <*> children (Python.Syntax.FutureImport <$> some (aliasImportSymbol <|> importSymbol)) where -- `import a as b` aliasedImport = makeTerm <$> symbol AliasedImport <*> children (Python.Syntax.QualifiedAliasedImport <$> importPath <*> expression)