mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Add comment that should be addressed
This commit is contained in:
parent
cda5c068a4
commit
ab40b30398
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue