Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow FileSource to accept a callable #410

Closed
wants to merge 2 commits into from

Conversation

bertday
Copy link

@bertday bertday commented Jan 26, 2017

This change allows a FileSource to be initialized with any callable that returns a context-managed file-like object. This should be non-breaking, as passing in a string will still call io.open as petl currently does. Resolves #409.

@alimanfoo
Copy link
Collaborator

Apologies this PR never got addressed. If it's still a requirement for anyone then please say, happy to consider it. Leaving open for now as needs a test.

@juarezr
Copy link
Member

juarezr commented Oct 8, 2021

Obsoleted by:

@juarezr juarezr closed this Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helper class to source any file-like object
3 participants