From 9315adb8c58099f892a8c44e489a62b4e56e376d Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 22 Jun 2018 21:16:27 +0200 Subject: lint --- src/js/pbjs_hack.py | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'src/js/pbjs_hack.py') diff --git a/src/js/pbjs_hack.py b/src/js/pbjs_hack.py index e0e1ab06f..19b7c1691 100755 --- a/src/js/pbjs_hack.py +++ b/src/js/pbjs_hack.py @@ -27,28 +27,22 @@ assert os.path.exists(pbts_bin) proto_in = sys.argv[1] stamp_file = sys.argv[2] + def touch(fname): - if os.path.exists(fname): - os.utime(fname, None) - else: - open(fname, 'a').close() + if os.path.exists(fname): + os.utime(fname, None) + else: + open(fname, 'a').close() + subprocess.check_call([ - "node", - pbjs_bin, - "--target=static-module", - "--wrapper=commonjs", - "--out=" + msg_pbjs_out, - proto_in + "node", pbjs_bin, "--target=static-module", "--wrapper=commonjs", + "--out=" + msg_pbjs_out, proto_in ]) assert os.path.exists(msg_pbjs_out) -subprocess.check_call([ - "node", - pbts_bin, - "--out=" + msg_pbts_out, - msg_pbjs_out -]) +subprocess.check_call( + ["node", pbts_bin, "--out=" + msg_pbts_out, msg_pbjs_out]) assert os.path.exists(msg_pbts_out) touch(stamp_file) -- cgit v1.2.3