From 0a20ce61507b9510f4bfe9bb34efabdf56baf704 Mon Sep 17 00:00:00 2001 From: Joannah Nanjekye Date: Wed, 1 May 2024 10:27:56 -0300 Subject: [PATCH] remove commented code --- Objects/unicodeobject.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index a25235872fef07..97ae36612912db 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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;