mirror of
https://github.com/python/cpython.git
synced 2025-08-20 00:32:12 +00:00
Backport fix of #1752175.
This commit is contained in:
parent
7d108b8806
commit
eec47f3556
2 changed files with 7 additions and 1 deletions
|
@ -3115,6 +3115,7 @@ decode_utf8(const char **sPtr, const char *end, char* encoding)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef Py_USING_UNICODE
|
||||
static PyObject *
|
||||
decode_unicode(const char *s, size_t len, int rawmode, const char *encoding)
|
||||
{
|
||||
|
@ -3176,6 +3177,7 @@ decode_unicode(const char *s, size_t len, int rawmode, const char *encoding)
|
|||
Py_XDECREF(u);
|
||||
return v;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* s is a Python string literal, including the bracketing quote characters,
|
||||
* and r &/or u prefixes (if any), and embedded escape sequences (if any).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue