Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
nanjekyejoannah committed May 1, 2024
1 parent 93a383e commit 0a20ce6
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,19 +1210,6 @@ PyObject *PyUnicode_FromEncodedObject(register PyObject *obj,
}
#else
#endif

// if (PyUnicode_Check(obj)) {
// PyErr_SetString(PyExc_TypeError,
// "'decode()' is not supported on Unicode in 3.x: convert the string to bytes.");
// obj->ob_bstate = BSTATE_BYTE;
// if ((obj->ob_bstate == BSTATE_BYTE) &&
// PyErr_WarnPy3k(
// "'decode()' is not supported on Unicode in 3.x: convert the string to bytes.", 1) < 0) {
// return NULL;
// }
// return NULL;
// return PyObject_Unicode(obj);
// }

if (PyUnicode_Check(obj)) {
obj->ob_bstate = BSTATE_BYTE;
Expand Down

0 comments on commit 0a20ce6

Please sign in to comment.