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

Add newline to StringIO #518

Merged
merged 1 commit into from
Feb 21, 2022

Conversation

matthewhegarty
Copy link
Contributor

This is a fix for #517.
Adding the newline kwarg to StringIO handles interpreting the LF char.

https://docs.python.org/3/library/functions.html#open-newline-parameter

@codecov
Copy link

codecov bot commented Feb 21, 2022

Codecov Report

Merging #518 (12aace0) into master (d9a4a97) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 12aace0 differs from pull request most recent head 10bd273. Consider uploading reports for the commit 10bd273 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #518      +/-   ##
==========================================
+ Coverage   90.82%   90.84%   +0.01%     
==========================================
  Files          28       28              
  Lines        2660     2664       +4     
==========================================
+ Hits         2416     2420       +4     
  Misses        244      244              
Impacted Files Coverage Δ
src/tablib/utils.py 100.00% <100.00%> (ø)
tests/test_tablib.py 98.62% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d9a4a97...10bd273. Read the comment docs.

@claudep
Copy link
Contributor

claudep commented Feb 21, 2022

Thanks! May I ask you to also add a line in HISTORY.md?

matthewhegarty added a commit to matthewhegarty/tablib that referenced this pull request Feb 21, 2022
@matthewhegarty
Copy link
Contributor Author

Have updated HISTORY as requested.

HISTORY.md Outdated

### Bugfixes

- Add newline kwarg to `StringIO` (#518).
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, but I would rather describe the functional benefit, something like Support solo CR in text input imports.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

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.

2 participants