mirror of
https://github.com/python/cpython.git
synced 2025-10-14 18:59:46 +00:00
When representing #includes as imports, do from MOD import *.
This commit is contained in:
parent
4f85bf3311
commit
f2f8c51ae6
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ def process(fp, outfp, env = {}):
|
||||||
a, b = regs[1]
|
a, b = regs[1]
|
||||||
filename = line[a:b]
|
filename = line[a:b]
|
||||||
if importable.has_key(filename):
|
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):
|
elif not filedict.has_key(filename):
|
||||||
filedict[filename] = None
|
filedict[filename] = None
|
||||||
inclfp = None
|
inclfp = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue