Skip to content

Commit 1c3cad1

Browse files
committed
Default to not-encoding JSON instead of raising
A regression from #18.
1 parent d1618aa commit 1c3cad1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codecs/context.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ cdef class CodecContext:
1717
raise NotImplementedError
1818

1919
cdef is_decoding_json(self):
20-
raise NotImplementedError
20+
return False
2121

2222
cpdef get_json_encoder(self):
2323
raise NotImplementedError
2424

2525
cdef is_encoding_json(self):
26-
raise NotImplementedError
26+
return False

0 commit comments

Comments
 (0)