Definition at line 59 of file preprocessors.py.
◆ __init__()
GaudiTesting.preprocessors.LineSkipper.__init__ |
( |
| self, |
|
|
| strings = [], |
|
|
| regexps = [] ) |
Definition at line 60 of file preprocessors.py.
60 def __init__(self, strings=[], regexps=[]):
61 import re
62
63 self.strings = strings
64 self.regexps = list(map(re.compile, regexps))
65
◆ __processLine__()
GaudiTesting.preprocessors.LineSkipper.__processLine__ |
( |
| self, |
|
|
| line ) |
Definition at line 66 of file preprocessors.py.
66 def __processLine__(self, line):
67 for s in self.strings:
68 if line.find(s) >= 0:
69 return None
70 for r in self.regexps:
71 if r.search(line):
72 return None
73 return line
74
75
◆ regexps
GaudiTesting.preprocessors.LineSkipper.regexps = list(map(re.compile, regexps)) |
◆ strings
GaudiTesting.preprocessors.LineSkipper.strings = strings |
The documentation for this class was generated from the following file: