Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(166923)

Delta Between Two Patch Sets: Objects/bytesobject.c

Issue 28128: Improve the warning message for invalid escape sequences
Left Patch Set: Created 3 years, 1 month ago
Right Patch Set: Created 3 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_unicode.py ('k') | Objects/unicodeobject.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* bytes object implementation */ 1 /* bytes object implementation */
2 2
3 #define PY_SSIZE_T_CLEAN 3 #define PY_SSIZE_T_CLEAN
4 4
5 #include "Python.h" 5 #include "Python.h"
6 6
7 #include "bytes_methods.h" 7 #include "bytes_methods.h"
8 #include "pystrhex.h" 8 #include "pystrhex.h"
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 3397 matching lines...) Expand 10 before | Expand all | Expand 10 after
3408 3408
3409 str = _PyBytesWriter_Prepare(writer, str, size); 3409 str = _PyBytesWriter_Prepare(writer, str, size);
3410 if (str == NULL) 3410 if (str == NULL)
3411 return NULL; 3411 return NULL;
3412 3412
3413 memcpy(str, bytes, size); 3413 memcpy(str, bytes, size);
3414 str += size; 3414 str += size;
3415 3415
3416 return str; 3416 return str;
3417 } 3417 }
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+