MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / write_code

Method write_code

21-async/mojifinder/bottle.py:3583–3587  ·  view source on GitHub ↗
(self, line, comment='')

Source from the content-addressed store, hash-verified

3581 return '_escape(%s)' % chunk
3582
3583 def write_code(self, line, comment=''):
3584 line, comment = self.fix_backward_compatibility(line, comment)
3585 code = ' ' * (self.indent+self.indent_mod)
3586 code += line.lstrip() + comment + '\n'
3587 self.code_buffer.append(code)
3588
3589 def fix_backward_compatibility(self, line, comment):
3590 parts = line.strip().split(None, 2)

Callers 2

read_codeMethod · 0.95
flush_textMethod · 0.95

Calls 2

appendMethod · 0.45

Tested by

no test coverage detected