Skip to content

Do not call str.splitlines() twice in the same function #627

@fukanchik

Description

@fukanchik

Document.lines is a property which executes self.source.splitlines(True). It is used in apply_change and in word_at_position and in both cases called twice which is not necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions