def process_class(self, target: Class): """Run the process handlers for the target class.""" target.status = Status.PROCESSING for processor in self.processors: processor.process(target) for inner in target.inner: if inner.status == Status.RAW: self.process_class(inner) target.status = Status.PROCESSED
def process_class(self, target: Class): """Run the process handlers for the target class.""" target.status = Status.PROCESSING for processor in self.processors: processor.process(target) # We go top to bottom because it's easier to handle circular # references. for inner in target.inner: if inner.status == Status.RAW: self.process_class(inner) target.status = Status.PROCESSED
def process_class(x: Class): x.status = Status.PROCESSED
def process_class(x: Class): x.status = Status.PROCESSED if x is first: first.attrs.clear()