Various Python cleanups

Fixes:
* Unused import
* Redundant backslash
* Use of discouraged if not x in y
* Use of deprecated form of raising exceptions

Follow-up to PR #655 as requested by @gribozavr
This commit is contained in:
practicalswift
2015-12-22 21:05:47 +01:00
parent 37b827c8c5
commit 4f2496e1a6
5 changed files with 8 additions and 15 deletions

View File

@@ -3,7 +3,6 @@
import os
import sys
import argparse
import itertools
import json
import textwrap
@@ -31,7 +30,7 @@ disabled_passes = sum(args.disable_pass, [])
disabled_passpipelines = sum(args.disable_passpipeline, [])
# First filter out pipelines.
normal_pipeline_generated = [x.generate() for x in normal_pipeline if not x.identifier in disabled_passpipelines]
normal_pipeline_generated = [x.generate() for x in normal_pipeline if x.identifier not in disabled_passpipelines]
# Then filter out specific passes.
for i in range(len(normal_pipeline_generated)):