mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
Add comment that should be addressed
This commit is contained in:
parent
cda5c068a4
commit
ab40b30398
@ -1188,6 +1188,9 @@ PyObject *_PyUnicode_AsDefaultEncodedString(PyObject *unicode,
|
||||
return v;
|
||||
if (errors != NULL)
|
||||
Py_FatalError("non-NULL encoding in _PyUnicode_AsDefaultEncodedString");
|
||||
/* XXX(nnorwitz): errors will always be NULL due to the check above.
|
||||
Should this check and the else be removed since it's dead code?
|
||||
*/
|
||||
if (errors == NULL) {
|
||||
b = PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(unicode),
|
||||
PyUnicode_GET_SIZE(unicode),
|
||||
|
Loading…
Reference in New Issue
Block a user