]> granicus.if.org Git - python/commitdiff
When representing #includes as imports, do from MOD import *.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 9 Aug 2001 12:32:10 +0000 (12:32 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 9 Aug 2001 12:32:10 +0000 (12:32 +0000)
Tools/scripts/h2py.py

index 4e81c865d87a751eb2382e465014eae49adfd6cb..689dc666d5363831c0abcf25281c63c8e407d160 100755 (executable)
@@ -135,7 +135,7 @@ def process(fp, outfp, env = {}):
             a, b = regs[1]
             filename = line[a:b]
             if importable.has_key(filename):
-                outfp.write('import %s\n' % importable[filename])
+                outfp.write('from %s import *\n' % importable[filename])
             elif not filedict.has_key(filename):
                 filedict[filename] = None
                 inclfp = None