I don't understand logic of all hbatch_something parsers.
For example hbatch_mantra:
Code: Select all
from parsers import hbatch
from parsers import mantra
class hbatch_mantra(hbatch.hbatch, mantra.mantra):
def __init__(self):
hbatch.hbatch.__init__(self) # WE init str_error and str_warning from hbatch parser
mantra.mantra.__init__(self) # NOW we re-initialize them, and we lost errors and warnings from hbatch!
def do(self, data, mode):
mantra.mantra.do(self, data, mode)
hbatch.hbatch.do(self, data, mode)