summaryrefslogtreecommitdiff
path: root/jq.pyx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-03-27 15:53:05 +0000
committerMichael Williamson <mike@zwobble.org>2014-03-27 15:53:05 +0000
commit0ece35e5cac8a7c4aee28dde878e8a5e28e75ccf (patch)
tree5d072b7d30f85c929ad22c2fa89a7955a48b763f /jq.pyx
parentab0c4b49e2f6d73df4ebfceb2037f1cd29edb3d6 (diff)
Fix bytes/string error in Python 3
Diffstat (limited to 'jq.pyx')
-rw-r--r--jq.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/jq.pyx b/jq.pyx
index 08f1e2b..02eb912 100644
--- a/jq.pyx
+++ b/jq.pyx
@@ -94,7 +94,7 @@ cdef class _ErrorStore(object):
return "\n".join(self._errors)
cdef void store_error(self, char* error):
- self._errors.append(error)
+ self._errors.append(error.decode("utf8"))
cdef void clear(self):
self._errors = []