From d687cfb22841ba0e1ccf4c946f672dfaeae239cb Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sat, 10 Nov 2018 18:29:08 +0800 Subject: [Tools] Change building script for Py3 --- tools/wizard.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools/wizard.py') diff --git a/tools/wizard.py b/tools/wizard.py index d32f116a9b..c5773527c6 100644 --- a/tools/wizard.py +++ b/tools/wizard.py @@ -66,19 +66,19 @@ Return('objs') ''' def usage(): - print 'wizard --component name' - print 'wizard --bridge' + print('wizard --component name') + print('wizard --bridge') def gen_component(name): - print 'generate SConscript for ' + name + print('generate SConscript for ' + name) text = SConscript_com.replace('COMPONENT_NAME', name) - f = file('SConscript', 'w') + f = open('SConscript', 'w') f.write(text) f.close() def gen_bridge(): - print 'generate SConscript for bridge' - f = file('SConscript', 'w') + print('generate SConscript for bridge') + f = open('SConscript', 'w') f.write(SConscript_bridge) f.close() -- cgit v1.3.1