diff options
author | Michael W. Hudson <mwh@python.net> | 2004-11-08 12:17:34 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2004-11-08 12:17:34 (GMT) |
commit | 05522ad795fe83dd1ffee4923c36d2ee8890708c (patch) | |
tree | 60565d2ae0f53237b2f4255ef70def447eea21e5 /Lib | |
parent | 481b09b3526d446e8abb8f0336b5e38a4fef01ac (diff) | |
download | cpython-05522ad795fe83dd1ffee4923c36d2ee8890708c.zip cpython-05522ad795fe83dd1ffee4923c36d2ee8890708c.tar.gz cpython-05522ad795fe83dd1ffee4923c36d2ee8890708c.tar.bz2 |
Fix bug
[ 1057835 ] compiler.transformer, "from module import *"
Diffstat (limited to 'Lib')
-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), |