-
Notifications
You must be signed in to change notification settings - Fork 18
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
Issue with unquoted csv output format #46
Comments
P.S. Simple quoting of the fields may not work either since the fields also include quotes. It is probably worth using csv.py for the task. |
csv.py? I was thinking we could make the separator configurable but that might not help much either. It's a tricky one. Open to suggestions. |
Sorry for being unclear, I meant the standard lib csv.py: https://docs.python.org/3/library/csv.html (although it may not fit in with your code). |
@john-mcnamara-intel I should have this fixed on master now. Can you test this and let me know if it fixes things for you? If so, I'll cut a new release. Hint: to test locally without wiping your install:
|
Thanks for the fix. With a full install in Python 2 the changes on HEAD give the following error:
Since the import probably should be: if sys.version_info < (3, 0):
from StringIO import StringIO # noqa
else:
from io import StringIO # noqa However, with that change in place it throws another issue:
|
Let's try again. Can you check the latest master? |
Thanks. There is still an issue in Python 2.7:
|
That's because you've got an old version of |
You are right. Sorry about that. I thought that would be picked up from requirements.txt.
I'm not using virtualenv. I'm installing git-pw directly into the system:
I've updated any versions that needed:
The six issue is fixed. However, there is still an issue:
|
Third times the charm? 🙈 New version pushed that handles ints too. |
Sucess!
Thanks for the fix and your patience. However, I'm now seeing a Unicode issue in another case. Here is a dump from the DPDK patchwork which works:
However, with the CSV output it throws an exception
|
Tracked in #49. Let me know if the fix I've pushed for that does the trick. Unicode is hard 😰 |
Some output fields from
git-pw
contain commas which break the CSVoutput.For example consider a query like this against the DPDK Patchwork:
If you then add the format csv option you get this:
The commas in the Name fields means that there are too many CSV fields. I'd guess that they should be quoted:
Version is 1.6.0 from the current HEAD:
The text was updated successfully, but these errors were encountered: