Don't use comma-separated arguments to print function

This commit is contained in:
Alexander van Gessel 2017-09-21 11:45:00 +02:00 committed by loonycyborg
parent 39d3933073
commit cf017dc168
2 changed files with 2 additions and 2 deletions

View file

@ -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()
#

View file

@ -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))