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