Skip to content

Preserve file original line ending regardless the platform #11

@evandrocoan

Description

@evandrocoan

As I am on Windows, Python open(file) will automatically use CRLF when saving the file, regardless whether the file was originally with LF line ending. By opening the file in binary mode, Python open(file) will stop converting the file line endings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions