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
delimiter in CSV writer should support unicode #1949
Conversation
@astrofrog - code attached. I've taken the kludgey step of copying two key test files and putting a future unicode_literals import at the top. As discussed previously with @mdboom for The main issue was related |
This looks good to me. Note that we aren't really "supporting unicode" here -- this will still fail with non-ascii characters -- but that's a pretty corner case -- hopefully no one is using unicode delimiters. Ideally, we would encode the delimiter etc. in the same encoding as whatever lines is in, but I don't think we (can) know what that is, so this is probably good enough. Needs a CHANGES entry, but other than that I think this is good to merge. Let's just leave the duplicated |
Allow passing unicode delimiters in io.ascii read and write
Allow passing unicode delimiters in io.ascii read and write
Allow passing unicode delimiters in io.ascii read and write
I merged this into the v0.3.x branch, and several of these tests are failing there. Not sure why yet but am investigating--any ideas? |
No obvious ideas. Is there a link to the test log we can look at? |
…ifferences likely due to slight implementation differences between the two versions. Now all tests are passing except some of those introduced by #1949. Still trying to understand the root of that problem.
I just fixed a few other small issues in the release branch, and narrowed it down to the tests from this PR that aren't working. Travis should have a build log in a bit. |
Here we go: https://travis-ci.org/astropy/astropy/jobs/18745796 The doctest failures are unrelated. |
Nevermind, I understand the issue now: The original version of this PR, as you wrote, added |
Allow passing unicode delimiters in io.ascii read and write
…ifferences likely due to slight implementation differences between the two versions. Now all tests are passing except some of those introduced by #1949. Still trying to understand the root of that problem.
I think the following should probably be made to work:
I found this in a script that was importig
unicode_literals
from__future__
cc @taldcroft