def circuit_built(self, circuit): print(string_for_circuit(self.state, circuit)) if self.show_flags: flagslist = ['%s=%s' % x for x in circuit.flags.items()] flags = wrap(' '.join(flagslist), 72, ' ') print(colors.cyan(' Flags:'), flags.lstrip())