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/strip_local_names.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'scripts/strip_local_names.py') 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()) -- cgit v1.2.3