17 lines
418 B
Python
17 lines
418 B
Python
import re
|
|
|
|
from parsers.ParserBackup.ParserBackupBase import ParserBackupBase
|
|
|
|
|
|
class CreateBackupParser(ParserBackupBase):
|
|
def __init__(self):
|
|
ParserBackupBase.__init__(self)
|
|
|
|
def getMatchInfo(self, line):
|
|
assert line is not None
|
|
|
|
regexpSource = self.startsWith('create') + self.spaceEndsWith('backup')
|
|
regexp = re.compile(regexpSource, re.UNICODE)
|
|
|
|
match = regexp.match(line)
|
|
return match, regexpSource |