Fix Python string formatting

This commit is contained in:
cclauss 2018-05-03 07:47:34 +02:00
parent 60e5e213fd
commit d4a966c7c4
2 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ def execute(cmd, shell=False):
log.info('Executing: ' + ' '.join(cmd))
retcode = subprocess.call(cmd, shell=shell)
if retcode < 0:
raise Fail("Child was terminated by signal:" %s -retcode)
raise Fail("Child was terminated by signal: %s" % -retcode)
elif retcode > 0:
raise Fail("Child returned: %s" % retcode)
except OSError as e:

View File

@ -14,7 +14,7 @@ def execute(cmd, shell=False):
log.info("Executing: %s" % cmd)
retcode = subprocess.call(cmd, shell=shell)
if retcode < 0:
raise Fail("Child was terminated by signal:" %s -retcode)
raise Fail("Child was terminated by signal: %s" % -retcode)
elif retcode > 0:
raise Fail("Child returned: %s" % retcode)
except OSError as e:
@ -159,7 +159,7 @@ class Builder:
if flags:
cmd += ["-DCMAKE_C_FLAGS='%s'" % flags,
"-DCMAKE_CXX_FLAGS='%s'" % flags]
return cmd;
return cmd
def get_build_flags(self):
flags = ""
@ -235,7 +235,7 @@ if __name__ == "__main__":
builder.config()
if args.config_only:
sys.exit(0);
sys.exit(0)
log.info("=====")
log.info("===== Building OpenCV.js in %s", "asm.js" if not args.build_wasm else "wasm")