def DispatchString(self,s): x86sourceLogger.info(s.rstrip()) #don't want extra newline s = s.strip() if not s: pass #blank line elif s[0] == "!": self.dispatchDirective(s) else: self.dispatchStatement(s)
def _log_header(text): line = "=" * len(text) x86sourceLogger.info(line) x86sourceLogger.info(text) x86sourceLogger.info(line) x86sourceLogger.info('')