From: Michael W. Hudson Date: Mon, 8 Nov 2004 12:17:34 +0000 (+0000) Subject: Fix bug X-Git-Tag: v2.4c1~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05522ad795fe83dd1ffee4923c36d2ee8890708c;p=thirdparty%2FPython%2Fcpython.git Fix bug [ 1057835 ] compiler.transformer, "from module import *" --- diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index 840d79f380fa..0c6d1483f4b2 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),