diff options
author | Ben Sturmfels <ben@sturm.com.au> | 2019-09-12 19:39:54 +1000 |
---|---|---|
committer | Ben Sturmfels <ben@sturm.com.au> | 2019-09-12 19:39:54 +1000 |
commit | 8f18381bbc7d12e9a988d5ce332491ba487fc73d (patch) | |
tree | 858210a28a659c06f8a8e4c919543abaee3789e8 /extlib/thingiview.js/binaryReader.js | |
parent | eb365433641c0cfc4abb63e8e9952e3d8cc9df81 (diff) | |
download | mediagoblin-8f18381bbc7d12e9a988d5ce332491ba487fc73d.tar.lz mediagoblin-8f18381bbc7d12e9a988d5ce332491ba487fc73d.tar.xz mediagoblin-8f18381bbc7d12e9a988d5ce332491ba487fc73d.zip |
batchaddmedia: Simplify the Python 2 & 3 unicode handling.
To avoid issues with quotes, I've replaced the manual CSV handling with
csv.DictReader and simplified the unicode handling down to a single line. I
don't believe any special encoding is required when writing to the database.
This has been tested by importing a CSV with braille characters on Python 3 and
Python 2.
Diffstat (limited to 'extlib/thingiview.js/binaryReader.js')
0 files changed, 0 insertions, 0 deletions