Definition at line 517 of file GaudiTest.py.
◆ __init__()
def GaudiTest.RegexpReplacer.__init__ |
( |
|
self, |
|
|
|
orig, |
|
|
|
repl = "" , |
|
|
|
when = None |
|
) |
| |
Definition at line 518 of file GaudiTest.py.
518 def __init__(self, orig, repl="", when=None):
520 when = re.compile(when)
521 self._operations = [(when, re.compile(orig), repl)]
◆ __add__()
def GaudiTest.RegexpReplacer.__add__ |
( |
|
self, |
|
|
|
rhs |
|
) |
| |
Reimplemented from GaudiTest.FilePreprocessor.
Definition at line 523 of file GaudiTest.py.
523 def __add__(self, rhs):
524 if isinstance(rhs, RegexpReplacer):
525 res = RegexpReplacer(
"",
"",
None)
526 res._operations = self._operations + rhs._operations
528 res = FilePreprocessor.__add__(self, rhs)
◆ __processLine__()
def GaudiTest.RegexpReplacer.__processLine__ |
( |
|
self, |
|
|
|
line |
|
) |
| |
◆ _operations
GaudiTest.RegexpReplacer._operations |
|
private |
The documentation for this class was generated from the following file: