Skip to content

CsvFileSource cannot handle gzip files #3

@ivarg

Description

@ivarg

Hi, and thanks very much for this library.

I noticed that when trying to feed the CsvFileSource a gzip file, I got this error:

TypeError: argument 1 must be an iterator

After some digging I found out that csv.reader() expects an iterator, which, unfortunately, is not what self.open_file() returns (see FileBasedSource).

This test exposes the problem, and this addition to sources.py fixed my problem.

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