From c8a797d120a1413d993281c98268c1c2ee9f3f94 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Fri, 16 Aug 2019 13:31:52 -0700 Subject: 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. --- scripts/embedwast.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/embedwast.py') 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) -- cgit v1.2.3