Name |
Last commit
|
Last update |
---|---|---|
docs | ||
pipeline | ||
tests | ||
.gitignore | ||
AUTHORS | ||
LICENSE | ||
MANIFEST.in | ||
README.md | ||
setup.py | ||
tox.ini |
The django.core.files.base module uses the cStringIO package where available. However, unlike StringIO, cStringIO does not support unicode data, and the result is additional null bytes being entered into the output file. The trick seems to be to convert the data into a byte string before passing it into ContentFile, which I do here using Django's smart_str() utility. Signed-off-by: Timothée Peignier <timothee.peignier@tryphon.org>
Name |
Last commit
|
Last update |
---|---|---|
docs | Loading commit data... | |
pipeline | Loading commit data... | |
tests | Loading commit data... | |
.gitignore | Loading commit data... | |
AUTHORS | Loading commit data... | |
LICENSE | Loading commit data... | |
MANIFEST.in | Loading commit data... | |
README.md | Loading commit data... | |
setup.py | Loading commit data... | |
tox.ini | Loading commit data... |