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

Don't check f.loc in _get_extraction_protocol_with_magic_number #4318

Merged

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented May 11, 2022

f.loc doesn't always exist for file-like objects in python. I removed it since it was not necessary anyway (we always seek the file to 0 after reading the magic number)

Fix #4310

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented May 11, 2022

The documentation is not available anymore as the PR was closed or merged.

@lhoestq lhoestq merged commit 17fd2ea into master May 11, 2022
@lhoestq lhoestq deleted the dont-check-loc-in-_get_extraction_protocol_with_magic_number branch May 11, 2022 16:46
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.

Loading dataset with streaming: '_io.BufferedReader' object has no attribute 'loc'
2 participants