INNER CODE UNIT · Python

before

PyCQA/isort · isort/core.py:106

                    before = before[: -len(parsed.line_separator)]
                extra_space = extra_space.replace(parsed.line_separator, "", 1)
                sorted_output = output.sorted_imports(
                    parsed, config, extension, import_type="import"
                )
                made_changes = made_changes or _has_changed(
                    before=before,
                    after=sorted_output,
                    line_separator=parsed.line_separator,
                    ignore_whitespace=config.ignore_whitespace,
                )
                new_input += sorted_output
                new_input += extra_space
                current = ""
            new_input += line or ""
        else:
            current += line or ""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…