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

no \r\n at the end of file with justkeyvals #165

Open
johnny2002 opened this issue Apr 24, 2020 · 1 comment
Open

no \r\n at the end of file with justkeyvals #165

johnny2002 opened this issue Apr 24, 2020 · 1 comment

Comments

@johnny2002
Copy link

johnny2002 commented Apr 24, 2020

when I export key values to a csv file with justkeyvals, there is no \r\n at last line of the csv file.
this will cases the shell pipe don't know last line is finished.

@johnny2002
Copy link
Author

in order to add a "\r\n" at the end of csv file, please add the following lines in callbacks.py line 268, that is, the end of KeyValsOnlyCallback section:

def end_rdb(self): self._out.write(b'\r\n')

@johnny2002 johnny2002 changed the title no eof with justkeyvals no \r\n as the of file with justkeyvals Apr 24, 2020
@johnny2002 johnny2002 changed the title no \r\n as the of file with justkeyvals no \r\n at the end of file with justkeyvals Apr 25, 2020
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

No branches or pull requests

1 participant