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

fix line return #531

Merged
merged 3 commits into from
Jul 19, 2024
Merged

fix line return #531

merged 3 commits into from
Jul 19, 2024

Conversation

fantasist
Copy link
Contributor

@fantasist fantasist commented Jul 18, 2024

len(data) is the size of json object parsed from a line, which does not represent the count of lines in the source file. This incorrectly squashes most contents of the input file to the second line of the output file.

@fantasist fantasist marked this pull request as ready for review July 18, 2024 20:27
Copy link
Collaborator

@HuanzhiMao HuanzhiMao left a comment

Choose a reason for hiding this comment

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

Good catch. Thanks for the PR @fantasist!

@fantasist
Copy link
Contributor Author

Hi @HuanzhiMao , I don't have permission to merge. Feel free to merge it for me when you get a chance.

@ShishirPatil
Copy link
Owner

Thanks for the catch @fantasist and welcome!

@ShishirPatil ShishirPatil merged commit b84fa39 into ShishirPatil:main Jul 19, 2024
@fantasist fantasist deleted the line-return branch July 19, 2024 17:29
aw632 pushed a commit to vinaybagade/gorilla that referenced this pull request Aug 22, 2024
`len(data)` is the size of json object parsed from a line, which does
not represent the count of lines in the source file. This incorrectly
squashes most contents of the input file to the second line of the
output file.

---------

Co-authored-by: Yunfan Zhong <alanwake@in.ai>
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.

3 participants