rope.refactor.sourceutils ========================= .. py:module:: rope.refactor.sourceutils Functions --------- .. autoapisummary:: rope.refactor.sourceutils.get_indents rope.refactor.sourceutils.find_minimum_indents rope.refactor.sourceutils.indent_lines rope.refactor.sourceutils.fix_indentation rope.refactor.sourceutils.add_methods rope.refactor.sourceutils.get_body rope.refactor.sourceutils.get_body_region rope.refactor.sourceutils.get_indent Module Contents --------------- .. py:function:: get_indents(lines, lineno) .. py:function:: find_minimum_indents(source_code) .. py:function:: indent_lines(source_code, amount) .. py:function:: fix_indentation(code: str, new_indents: int) -> str Change the indentation of `code` to `new_indents` .. py:function:: add_methods(pymodule, class_scope, methods_sources) .. py:function:: get_body(pyfunction) Return unindented function body .. py:function:: get_body_region(defined) Return the start and end offsets of function body .. py:function:: get_indent(project)