Skip to content

template_to_file turns CR+LF into CR+CR+LF on windows #234

@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Sebastian Bank (@xflr6)

Under Python 2.7, the files created by alembic revision have CR+CR+LF line endings.

Mako opens the template with mode rb, while alembic uses w producing the extra CRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions