summaryrefslogtreecommitdiff
path: root/scripts/embedwast.py
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-08-16 13:31:52 -0700
committerGuanzhong Chen <gzchen@google.com>2019-08-16 13:31:52 -0700
commitc8a797d120a1413d993281c98268c1c2ee9f3f94 (patch)
tree30b0d00b8af103e1b8a751f292f0241a02af9a79 /scripts/embedwast.py
parentee0564088c7f89814bf951cc5936aa096538e38f (diff)
downloadbinaryen-c8a797d120a1413d993281c98268c1c2ee9f3f94.tar.gz
binaryen-c8a797d120a1413d993281c98268c1c2ee9f3f94.tar.bz2
binaryen-c8a797d120a1413d993281c98268c1c2ee9f3f94.zip
Switch python indentation from 2-space to 4-space (#2299)
pep8 specifies 4 space indentation. The use of 2 spaces is, I believe a historical anomaly where certain large organizations such as google chose 2 over 4 and have yet to make the switch. Since there isn't too much code in binaryen today it seems reasonable to make the switch.
Diffstat (limited to 'scripts/embedwast.py')
-rwxr-xr-xscripts/embedwast.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/embedwast.py b/scripts/embedwast.py
index 6d97b21e9..804be4211 100755
--- a/scripts/embedwast.py
+++ b/scripts/embedwast.py
@@ -20,7 +20,7 @@ input_file = sys.argv[1]
output_file = sys.argv[2]
with open(input_file) as f:
- wast = f.read()
+ wast = f.read()
output = """\
// Automatically generated by embedwast.py
@@ -31,7 +31,7 @@ static const char theModule[%d] = {
""" % (len(wast) + 1)
for c in wast:
- output += str(ord(c)) + ', '
+ output += str(ord(c)) + ', '
output += '''0
};
@@ -42,4 +42,4 @@ const char* IntrinsicsModuleWast = theModule;
'''
with open(output_file, 'w') as f:
- f.write(output)
+ f.write(output)