We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc1daca commit 2d494ceCopy full SHA for 2d494ce
Objects/unicodeobject.c
@@ -9077,6 +9077,9 @@ _PyUnicode_EncodeCharmap(PyObject *unicode,
9077
const void *data = PyUnicode_DATA(unicode);
9078
int kind = PyUnicode_KIND(unicode);
9079
9080
+ PyObject *error_handler_obj = NULL;
9081
+ PyObject *exc = NULL;
9082
+
9083
/* output object */
9084
PyBytesWriter *writer;
9085
/* allocate enough for a simple encoding without
@@ -9090,8 +9093,6 @@ _PyUnicode_EncodeCharmap(PyObject *unicode,
9090
9093
Py_ssize_t inpos = 0;
9091
9094
/* current output position */
9092
9095
Py_ssize_t respos = 0;
- PyObject *error_handler_obj = NULL;
- PyObject *exc = NULL;
9096
_Py_error_handler error_handler = _Py_ERROR_UNKNOWN;
9097
9098
while (inpos<size) {
0 commit comments