Show More
@@ -319,13 +319,20 b' static Py_ssize_t jsonescapelen(const ch' | |||||
319 | static char jsonescapechar2(char c) |
|
319 | static char jsonescapechar2(char c) | |
320 | { |
|
320 | { | |
321 | switch (c) { |
|
321 | switch (c) { | |
322 |
case '\b': |
|
322 | case '\b': | |
323 |
|
|
323 | return 'b'; | |
324 | case '\n': return 'n'; |
|
324 | case '\t': | |
325 |
|
|
325 | return 't'; | |
326 | case '\r': return 'r'; |
|
326 | case '\n': | |
327 |
|
|
327 | return 'n'; | |
328 | case '\\': return '\\'; |
|
328 | case '\f': | |
|
329 | return 'f'; | |||
|
330 | case '\r': | |||
|
331 | return 'r'; | |||
|
332 | case '"': | |||
|
333 | return '"'; | |||
|
334 | case '\\': | |||
|
335 | return '\\'; | |||
329 | } |
|
336 | } | |
330 | return '\0'; /* should not happen */ |
|
337 | return '\0'; /* should not happen */ | |
331 | } |
|
338 | } |
General Comments 0
You need to be logged in to leave comments.
Login now