Skip to content

Observation: code is only for python 2? #15

@hughperkins

Description

@hughperkins

eg:

    fopen = gzip.open if path.endswith(".gz") else open
    with fopen(path) as fin:

python3 would need 'rt':

    fopen = gzip.open if path.endswith(".gz") else open
    with fopen(path, 'rt') as fin:

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