Merge lp:~james-w/pkgme/unicode-output into lp:pkgme
Proposed by
James Westby
Status: | Merged |
---|---|
Approved by: | Jonathan Lange |
Approved revision: | 115 |
Merged at revision: | 115 |
Proposed branch: | lp:~james-w/pkgme/unicode-output |
Merge into: | lp:pkgme |
Diff against target: |
34 lines (+14/-1) 2 files modified
pkgme/tests/test_write.py (+10/-0) pkgme/write.py (+4/-1) |
To merge this branch: | bzr merge lp:~james-w/pkgme/unicode-output |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Lange | Approve | ||
Review via email: mp+111018@code.launchpad.net |
Commit message
Encode unicode before writing it to a file.
Description of the change
Hi,
As spotted by Dave when the package details contain unicode
then we error trying to write the packaging as we don't encode
to utf-8 before writing the files.
This adds a test that demonstrates that and a fix.
I'm not sure that handling str or unicode in that function is the
right thing to do.
Thanks,
James
To post a comment you must log in.
Thanks! Please make sure there's a card for this on the kanban.