]> granicus.if.org Git - python/commitdiff
Fix bug
authorMichael W. Hudson <mwh@python.net>
Mon, 8 Nov 2004 12:17:34 +0000 (12:17 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 8 Nov 2004 12:17:34 +0000 (12:17 +0000)
1057835 ] compiler.transformer, "from module import *"

Lib/compiler/transformer.py

index 840d79f380fafd12fcc21327194936a143757eb5..0c6d1483f4b2a19e98cdf1fcd5316e6369997d70 100644 (file)
@@ -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),