diff options
author | Sam Clegg <sbc@chromium.org> | 2019-08-16 13:31:52 -0700 |
---|---|---|
committer | Guanzhong Chen <gzchen@google.com> | 2019-08-16 13:31:52 -0700 |
commit | c8a797d120a1413d993281c98268c1c2ee9f3f94 (patch) | |
tree | 30b0d00b8af103e1b8a751f292f0241a02af9a79 /scripts/strip_local_names.py | |
parent | ee0564088c7f89814bf951cc5936aa096538e38f (diff) | |
download | binaryen-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/strip_local_names.py')
-rw-r--r-- | scripts/strip_local_names.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/scripts/strip_local_names.py b/scripts/strip_local_names.py index bd10d8dab..959e56dd8 100644 --- a/scripts/strip_local_names.py +++ b/scripts/strip_local_names.py @@ -1,13 +1,12 @@ -''' -Removes local names. When you don't care about local names but do want +"""Removes local names. When you don't care about local names but do want to diff for structural changes, this can help. -''' +""" import sys for line in open(sys.argv[1]).readlines(): - if '(local.tee ' in line or '(local.set ' in line or '(local.get ' in line: - print(line[:line.find('$')]) - else: - print(line.rstrip()) + if '(local.tee ' in line or '(local.set ' in line or '(local.get ' in line: + print(line[:line.find('$')]) + else: + print(line.rstrip()) |