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