We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72e9e03 commit d4f9303Copy full SHA for d4f9303
1 file changed
lib/utils.py
@@ -145,15 +145,21 @@ def filter_log_warnings(infile, outfile):
145
patterns = [t[1] for t in parser.items('patterns', [])]
146
patterns = [re.compile(p) for p in patterns]
147
148
+ def suppress(line):
149
+ for suppression in suppressions:
150
+ if suppression in line:
151
+ return True
152
+
153
+ return False
154
155
found = False
156
while True:
157
line = infile.readline()
158
if len(line) == 0:
159
break
160
- for suppression in suppressions:
- if suppression in line:
- continue
161
+ if suppress(line):
162
+ continue
163
164
for string in strings:
165
if string in line:
0 commit comments