Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ZeroOrMore(self._items(category_items))
).setResultsName("CategoryList")
classlist = Group(CaselessLiteral('!Type:Class').suppress() +
ZeroOrMore(self._items(category_items))
).setResultsName("ClassList")
self.parser = Group(ZeroOrMore(White()).suppress() +
ZeroOrMore(acctlist).suppress() +
OneOrMore(ccardtxns | cashtxns | banktxns | liabilitytxns | invsttxns) +
ZeroOrMore(White()).suppress()
).setResultsName("QifStatement")
if (debug):
self.parser.setDebugActions(ofxtools._ofxtoolsStartDebugAction,
ofxtools._ofxtoolsSuccessDebugAction,
ofxtools._ofxtoolsExceptionDebugAction)