diff options
Diffstat (limited to 'Lib/compiler/transformer.py')
-rw-r--r-- | Lib/compiler/transformer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index 840d79f..0c6d148 100644 --- a/Lib/compiler/transformer.py +++ b/Lib/compiler/transformer.py @@ -437,8 +437,8 @@ class Transformer: assert nodelist[2][1] == 'import' fromname = self.com_dotted_name(nodelist[1]) if nodelist[3][0] == token.STAR: - # TODO(jhylton): where is the lineno? - return From(fromname, [('*', None)]) + return From(fromname, [('*', None)], + lineno=nodelist[0][2]) else: node = nodelist[3 + (nodelist[3][0] == token.LPAR)] return From(fromname, self.com_import_as_names(node), |