[gardening] Fix violations of non-controversial PEP8 rules

Fixes:
* multiple statements on one line (colon) (E701)
* missing whitespace around arithmetic operator (E226)
* missing whitespace around operator (E225)
* closing bracket does not match visual indentation (E124)
* blank line contains whitespace (W293)
* continuation line missing indentation or outdented (E122)
* continuation line over-indented for hanging indent (E126)
* missing expected blank line (E301)
* trailing whitespace (W291)
* unexpected spaces around keyword / parameter equals (E251)
* whitespace after '(', '[' or '{' (E201)
* whitespace before ')', ']' or '}' (E202)
* whitespace before ',' or ':' (E203)
This commit is contained in:
practicalswift
2016-01-17 22:07:45 +01:00
parent f0377bee52
commit 1cd4d4e9c9
29 changed files with 402 additions and 388 deletions

View File

@@ -98,7 +98,7 @@ def lower_passlist():
p.SpeculativeDevirtualizer,
p.FunctionSignatureOpts,
])
def normal_passpipelines():
result = []
@@ -106,23 +106,23 @@ def normal_passpipelines():
x.addPass(ssapass_passlist('high'))
result.append(x)
x = ppipe.PassPipeline('EarlyLoopOpt', {'name' : 'run_n_times', 'count' : 1})
x = ppipe.PassPipeline('EarlyLoopOpt', {'name': 'run_n_times', 'count': 1})
x.addPass(highlevel_loopopt_passlist())
result.append(x)
x = ppipe.PassPipeline('MidLevelOpt', {'name' : 'run_n_times', 'count' : 2})
x = ppipe.PassPipeline('MidLevelOpt', {'name': 'run_n_times', 'count': 2})
x.addPass(ssapass_passlist('mid'))
result.append(x)
x = ppipe.PassPipeline('Lower', {'name' : 'run_to_fixed_point'})
x = ppipe.PassPipeline('Lower', {'name': 'run_to_fixed_point'})
x.addPass(lower_passlist())
result.append(x)
x = ppipe.PassPipeline('LowLevel', {'name' : 'run_n_times', 'count' : 1})
x = ppipe.PassPipeline('LowLevel', {'name': 'run_n_times', 'count': 1})
x.addPass(ssapass_passlist('low'))
result.append(x)
x = ppipe.PassPipeline('LateLoopOpt', {'name' : 'run_n_times', 'count' : 1})
x = ppipe.PassPipeline('LateLoopOpt', {'name': 'run_n_times', 'count': 1})
x.addPass([lowlevel_loopopt_passlist(), p.DeadFunctionElimination])
result.append(x)