Change to more intuitive? method name.
This commit is contained in:
parent
603e91c0e2
commit
1577c23b7c
@ -99,8 +99,7 @@ class Parser(object):
|
|||||||
|
|
||||||
logging.debug("__init__: self.parseConf = %s"%(self.parseConf))
|
logging.debug("__init__: self.parseConf = %s"%(self.parseConf))
|
||||||
|
|
||||||
|
def parse(self):
|
||||||
def run(self):
|
|
||||||
result = {}
|
result = {}
|
||||||
for key in self.parseConf:
|
for key in self.parseConf:
|
||||||
matches = re.findall(self.parseConf[key], self.text, re.MULTILINE)
|
matches = re.findall(self.parseConf[key], self.text, re.MULTILINE)
|
||||||
@ -111,4 +110,7 @@ class Parser(object):
|
|||||||
else:
|
else:
|
||||||
logging.debug("run: No match for %s"%(key))
|
logging.debug("run: No match for %s"%(key))
|
||||||
|
|
||||||
print result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user