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

doubled sample size passed to csv.Sniffer() in _csv.detect() #503

Merged
merged 2 commits into from
Oct 14, 2021

Conversation

julianebeli
Copy link
Contributor

@julianebeli julianebeli commented Oct 14, 2021

Doubling the stream read sample in detect() from 1024 to 2048 to make csv.Sniffer().sniff() more reliable.
Closes #502

Doubling the stream read sample in detect() from 1024 to 2048 to make csv.Sniffer().sniff() more reliable.
@hugovk
Copy link
Member

hugovk commented Oct 14, 2021

Thanks for the PR!

The failing tests are unrelated, we need to merge #501 first.

@julianebeli Looks good, please could you edit the PR title to something a little more descriptive?

Normally we'd need tests for fixes, but we may be fine skipping them here (but of course check they still pass once #501 is merged). @claudep, what do you think?

@claudep
Copy link
Contributor

claudep commented Oct 14, 2021

Agreed, a test isn't absolutely required in this case.

@julianebeli julianebeli changed the title Update _csv.py doubled sample size passed to csv.Sniffer() in _csv.detect() Oct 14, 2021
Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@hugovk hugovk merged commit 3d38356 into jazzband:master Oct 14, 2021
@hugovk hugovk mentioned this pull request Oct 26, 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.

csv file format not auto detected.
3 participants