Closed grahame closed 6 years ago
no, you can't write unicode to sys.stdout in python2. Also if you're going to run the CLI in Python 3 you'll need to warn the user that the -c
option won't work because ckan itself can't run in Python 3 yet
https://github.com/ckan/ckanapi/blob/master/ckanapi/cli/dump.py#L34 works as an object that you can write bytes to in python 2 and 3. You could make that change instead.
duplicate of #96
OK, I'll close in favour of #96. Thanks for reviewing.
This patch fixes this error under Python 3. The patch functions under Python 2.