Don't use comma-separated arguments to print function
This commit is contained in:
parent
1523b09e77
commit
8d516df25b
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ from os import access, F_OK
|
|||
AddOption('--option-cache', dest='option_cache', nargs=1, type = 'string', action = 'store', metavar = 'FILE', help='file with cached construction variables', default = '.scons-option-cache')
|
||||
if os.path.exists(GetOption("option_cache")):
|
||||
optfile = file(GetOption("option_cache"))
|
||||
print("Saved options:", optfile.read().replace("\n", ", ")[:-2])
|
||||
print("Saved options: {}".format(optfile.read().replace("\n", ", ")[:-2]))
|
||||
optfile.close()
|
||||
|
||||
#
|
||||
|
|
|
@ -19,7 +19,7 @@ def InstallFilteredHook(target, source, env):
|
|||
else:
|
||||
if not os.path.exists(target):
|
||||
if env["verbose"]:
|
||||
print("Make directory", target)
|
||||
print("Make directory {}".format(target))
|
||||
os.makedirs(target)
|
||||
for file in os.listdir(source):
|
||||
do_copy(os.path.join(target, file), os.path.join(source, file))
|
||||
|
|
Loading…
Add table
Reference in a new issue