diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-08-09 12:32:10 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-08-09 12:32:10 (GMT) |
commit | f2f8c51ae6b409fc619f66c8b42689dbc221daf4 (patch) | |
tree | 0038ef662db13875cb44f29f74aecdbe289112ff /Tools | |
parent | 4f85bf3311e9ac09ec64e74f1ce9cf3e2d223543 (diff) | |
download | cpython-f2f8c51ae6b409fc619f66c8b42689dbc221daf4.zip cpython-f2f8c51ae6b409fc619f66c8b42689dbc221daf4.tar.gz cpython-f2f8c51ae6b409fc619f66c8b42689dbc221daf4.tar.bz2 |
When representing #includes as imports, do from MOD import *.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/h2py.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py index 4e81c86..689dc66 100755 --- a/Tools/scripts/h2py.py +++ b/Tools/scripts/h2py.py @@ -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 |