Fix Python string formatting

pull/11443/head
cclauss 7 years ago
parent 60e5e213fd
commit d4a966c7c4
  1. 2
      platforms/android/build_sdk.py
  2. 6
      platforms/js/build_js.py

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

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

Loading…
Cancel
Save